Class: Cybertrain::Test::RecordedFrame

Inherits:
Object
  • Object
show all
Defined in:
cybertrain/test/websocket_receiver.rb

Overview

A frame the client sent, as the receiver read it.

Instance Attribute Summary collapse

Instance Attribute Details

#rec_data ⇒ String (readonly)

Returns the payload, unmasked.

Returns:

  • (String) —

    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).

Returns:

  • (Boolean) —

    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, …

Returns:

  • (Integer) —

    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