Exception: Webtube::UnknownOpcode
- Inherits:
-
ProtocolError
- Object
- StandardError
- ProtocolError
- Webtube::UnknownOpcode
- Defined in:
- lib/webtube.rb
Instance Attribute Summary collapse
-
#frame ⇒ Object
readonly
Returns the value of attribute frame.
Instance Method Summary collapse
-
#initialize(message = "frame with unknown opcode arrived", frame: nil) ⇒ UnknownOpcode
constructor
A new instance of UnknownOpcode.
- #websocket_close_status_code ⇒ Object
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 = "frame with unknown opcode arrived", frame: nil super @frame = frame return end |
Instance Attribute Details
#frame ⇒ Object (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_code ⇒ Object
921 922 923 |
# File 'lib/webtube.rb', line 921 def websocket_close_status_code return 1003 end |