writeMessage abstract method

dynamic writeMessage(
  1. HubMessage message
)

Writes the specified HubMessage to a string or ArrayBuffer and returns it.

If transferFormat is 'Text', the result of this method will be a string, otherwise it will be an ArrayBuffer.

message The message to write. returns A string or ArrayBuffer containing the serialized representation of the message.

Implementation

dynamic writeMessage(HubMessage message);