Class: Cybertrain::WebSocket::Message

Inherits:
Object
  • Object
show all
Defined in:
cybertrain/websocket/frame.rb

Overview

A complete data message.

Instance Attribute Summary collapse

Instance Attribute Details

#ws_data ⇒ String (readonly)

Returns the payload bytes.

Returns:

  • (String) —

    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.

Returns:

  • (Symbol) —

    :text or :binary



81
82
83
# File 'cybertrain/websocket/frame.rb', line 81

def ws_opcode
  @ws_opcode
end