Class: Cybertrain::WebSocket::Message
- Inherits:
-
Object
- Object
- Cybertrain::WebSocket::Message
- Defined in:
- cybertrain/websocket/frame.rb
Overview
A complete data message.
Instance Attribute Summary collapse
-
#ws_data ⇒ String
readonly
The payload bytes.
-
#ws_opcode ⇒ Symbol
readonly
:text or :binary.
Instance Attribute Details
#ws_data ⇒ String (readonly)
Returns the payload bytes.
84 85 86 |
# File 'cybertrain/websocket/frame.rb', line 84 def ws_data @ws_data end |
#ws_opcode ⇒ Symbol (readonly)
Returns :text or :binary.
81 82 83 |
# File 'cybertrain/websocket/frame.rb', line 81 def ws_opcode @ws_opcode end |