Set a callback for receiving binary messages from the platform.
The given callback will replace the currently registered callback (if any).
Source
static void setBinaryMessageHandler(String channel, Future<ByteData> handler(ByteData message)) { _handlers[channel] = handler; }