Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Provider.WebSocket

Provider to handle websocket connections.

Functions

onClose
(
url
:
String
)
:
Promise(Void)

Handles the close event.

onError
(
url
:
String
)
:
Promise(Void)

Handles the error event.

onMessage
(
url
:
String
data
:
String
)
:
Promise(Void)

Handles the message event.

onOpen
(
url
:
String
socket
:
WebSocket
)
:
Promise(Void)

Handles the open event.

update
:
Promise(Void)

Handles updates to the provider.