mirror of
https://github.com/LukeHagar/crossws.git
synced 2025-12-06 04:19:26 +00:00
447 B
447 B
WebSocket Message
On message hook, you receive a message object containing an incoming message from the client.
Tip
You can safely log
messageobject to the console usingconsole.logit will be automatically stringified!
API Reference
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)