writeMessage abstract method
Writes the specified {@link @microsoft/signalr.HubMessage} to a string or ArrayBuffer and returns it.
If HubProtocol.transferFormat is 'Text', the result of this method will be a string, otherwise it will be an Uint8List.
message
The message to write.
Returns a string or Uint8List containing the serialized representation of the message.
Implementation
Object writeMessage(HubMessage message);