JavaScript

webSocketOnMessage

Arguments

eobject

An object passed to the event that contains the following properties:

messageJSON

A JSON object that contains the message from the server. Includes information about the message type, text, etc.

Description

Fires when a web socket server message is received.

 How to Determine the Values Available in e.message

To see all properties available in the e.message object, use JSON.stringify. For example:

alert(JSON.stringify(e.message));