# SocketTask.onMessage(function callback)
Listens on the event of receiving server messages by WebSocket
# Parameters
# function callback
The callback function for the event of receiving server messages by WebSocket.
# Parameters
# Object res
Property | Type | Description |
---|---|---|
data | string/ArrayBuffer | Messages returned by the server |