Exception: Webtube::UnknownOpcode

Inherits:
ProtocolError show all
Defined in:
lib/webtube.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "frame with unknown opcode arrived", frame: nil) ⇒ UnknownOpcode

Returns a new instance of UnknownOpcode.



913
914
915
916
917
918
919
# File 'lib/webtube.rb', line 913

def initialize message =
        "frame with unknown opcode arrived",
    frame: nil
  super message
  @frame = frame
  return
end

Instance Attribute Details

#frameObject (readonly)

Returns the value of attribute frame.



911
912
913
# File 'lib/webtube.rb', line 911

def frame
  @frame
end

Instance Method Details

#websocket_close_status_codeObject



921
922
923
# File 'lib/webtube.rb', line 921

def websocket_close_status_code
  return 1003
end