Class: Cybertrain::Test::RecordedFrame
- Inherits:
-
Object
- Object
- Cybertrain::Test::RecordedFrame
- Defined in:
- cybertrain/test/websocket_receiver.rb
Overview
A frame the client sent, as the receiver read it.
Instance Attribute Summary collapse
-
#rec_data ⇒ String
readonly
The payload, unmasked.
-
#rec_masked ⇒ Boolean
readonly
Whether the client masked it (a client must).
-
#rec_opcode ⇒ Integer
readonly
1 text, 2 binary, 8 close, 9 ping, 10 pong, …
Instance Attribute Details
#rec_data ⇒ String (readonly)
Returns the payload, unmasked.
63 64 65 |
# File 'cybertrain/test/websocket_receiver.rb', line 63 def rec_data @rec_data end |
#rec_masked ⇒ Boolean (readonly)
Returns whether the client masked it (a client must).
60 61 62 |
# File 'cybertrain/test/websocket_receiver.rb', line 60 def rec_masked @rec_masked end |
#rec_opcode ⇒ Integer (readonly)
Returns 1 text, 2 binary, 8 close, 9 ping, 10 pong, …
57 58 59 |
# File 'cybertrain/test/websocket_receiver.rb', line 57 def rec_opcode @rec_opcode end |