Class: VRTQL::WS::Message
- Inherits:
-
Object
- Object
- VRTQL::WS::Message
- Defined in:
- doc/vrtql.rb
Overview
This class encapsulates a WebSocket message.
Instance Method Summary collapse
-
#data ⇒ String
Returns the message data as a Ruby string.
-
#is_binary? ⇒ Boolean
Checks if the message is a binary message.
-
#is_text? ⇒ Boolean
Checks if the message is a text message.
-
#opcode ⇒ Integer
Returns the opcode of the message as a Ruby integer.
Instance Method Details
#data ⇒ String
Returns the message data as a Ruby string
243 244 245 |
# File 'doc/vrtql.rb', line 243 def data # Implementation is in the C-extension end |
#is_binary? ⇒ Boolean
Checks if the message is a binary message
264 265 266 |
# File 'doc/vrtql.rb', line 264 def is_binary? # Implementation is in the C-extension end |
#is_text? ⇒ Boolean
Checks if the message is a text message
257 258 259 |
# File 'doc/vrtql.rb', line 257 def is_text? # Implementation is in the C-extension end |
#opcode ⇒ Integer
Returns the opcode of the message as a Ruby integer
250 251 252 |
# File 'doc/vrtql.rb', line 250 def opcode # Implementation is in the C-extension end |