WebSocket: open event

The open event is fired when a connection with a WebSocket is opened.

WebSocket: message event

The message event is fired when data is received through a WebSocket.

Example

WebSocket: close event

The close event is fired when a connection with a WebSocket is closed.

Example