Called when the server receives an incoming message.
If the message is not a string
, its type is based on the value of binaryType
.
- if
nodebuffer
, then the message is aBuffer
. - if
arraybuffer
, then the message is anArrayBuffer
. - if
uint8array
, then the message is aUint8Array
.