decodeMessage method

  1. @override
String decodeMessage (ByteData message)
override

Decodes the specified message from binary.

Returns null if the message is null.

Implementation

@override
String decodeMessage(ByteData message) {
  if (message == null)
    return null;
  return utf8.decoder.convert(message.buffer.asUint8List(message.offsetInBytes, message.lengthInBytes));
}