Skip to main content

Connection

It maintains a WebSocket/SSE connection:

Supported methods

connect

Connects to the Event Delivery Service. This method can be used to reconnect after a disconnection, such as after using the disconnect method:

connection.connect();

getConfig

Retrieves the configuration of the connection. Returns a Config instance:

connection.getConfig();

getId

Retrieves the connection ID. Returns a number value:

connection.getId();

isConnected

Checks whether the connection is alive. Returns a boolean value:

connection.isConnected();

querySet

Create a QuerySet instance:

connection.querySet();

disconnect

Disconnect from the Event Delivery Service:

connection.disconnect();