Guide

Message

On message hook, you receive a message object containing an incoming message from the client.

You can safely log message object to the console using console.log it will be automatically stringified!

API

message.text()

Get stringified text version of the message

message.rawData

Raw message data

message.isBinary

Indicates if the message is binary (might be undefined)