WebSocketEvents

7 values
View as Markdown

Values

OPEN
'WebSocket.Open'

Triggered when the WebSocket connection is opened. WebSocket.onopen is called right before any other handlers.

CLOSE
'WebSocket.Close'

Triggered when the WebSocket connection is closed. WebSocket.onclose is called right before any other handlers.

MESSAGE
'WebSocket.Message'

Triggered when a message is received by a target object. WebSocket.onmessage is called right before any other handlers.

ERROR
'WebSocket.Error'

Triggers when an error occurs during the WebSocket connection. WebSocket.onerror is called right before any other handlers.

CREATED
'WebSocket.Created'

Triggered when the WebSocket connection is created. WebSocket.oncreated is called right before any other handlers.

MEDIA_STARTED
'WebSocket.MediaEventStarted'

Triggered when the audio stream sent by a third party through a WebSocket is started playing.

MEDIA_ENDED
'WebSocket.MediaEventEnded'

Triggers after the end of the audio stream sent by a third party through a WebSocket (1 second of silence).