class Protocol::WebSocket::ProtocolError

Raised by stream or connection handlers, results in GOAWAY frame which signals termination of the current connection. You cannot recover from this exception, or any exceptions subclassed from it.

Attributes

code[R]

Public Class Methods

new(message, code = PROTOCOL_ERROR) click to toggle source
Calls superclass method
# File lib/protocol/websocket/error.rb, line 46
def initialize(message, code = PROTOCOL_ERROR)
        super(message)
        
        @code = code
end