writeMessage abstract method
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
Object writeMessage(HubMessageBase message);