The goog.net.WebSocket.EventType Enum

goog.net.WebSocket.EventType

The events fired by the web socket.

@enum
{string} The event types for the web socket.

.CLOSED

Fired when an attempt to open the WebSocket fails or there is a connection failure after a successful connection has been established.

.ERROR

Fired when the WebSocket encounters an error.

.MESSAGE

Fired when a new message arrives from the WebSocket.

.OPENED

Fired when the WebSocket connection has been established.