Exception: LibWebSocket::Frame::Error::MandatoryExtension
- Inherits:
-
LibWebSocket::Frame::Error
- Object
- RuntimeError
- Error
- LibWebSocket::Frame::Error
- LibWebSocket::Frame::Error::MandatoryExtension
- Defined in:
- lib/libwebsocket/frame/error.rb
Overview
1010 indicates that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn’t return them in the response message of the WebSocket handshake. The list of extensions which are needed SHOULD appear in the /reason/ part of the Close frame. Note that this status code is not used by the server, because it can fail the WebSocket handshake instead.
Instance Method Summary collapse
Methods inherited from LibWebSocket::Frame::Error
Instance Method Details
#status_code ⇒ Object
94 |
# File 'lib/libwebsocket/frame/error.rb', line 94 def status_code; 1010; end |