Class: VRTQL::WS::Message

Inherits:
Object
  • Object
show all
Defined in:
doc/vrtql.rb

Overview

This class encapsulates a WebSocket message.

Instance Method Summary collapse

Instance Method Details

#dataString

Returns the message data as a Ruby string

Returns:

  • (String)

    The message data



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

Returns:

  • (Boolean)

    True if the message is a binary message, false otherwise



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

Returns:

  • (Boolean)

    True if the message is a text message, false otherwise



257
258
259
# File 'doc/vrtql.rb', line 257

def is_text?
  # Implementation is in the C-extension
end

#opcodeInteger

Returns the opcode of the message as a Ruby integer

Returns:

  • (Integer)

    The opcode value



250
251
252
# File 'doc/vrtql.rb', line 250

def opcode
  # Implementation is in the C-extension
end