Developer Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Stop an Event Stream

To stop an event stream, you issue a request to stop it and wait for the response.

client.onmessage = function(event)
{
    const message = JSON.parse(event.data);
    if (message.type == "stopusereventresponse" && message.success === true)
    {
        console.log("The user event stream has been stopped");
    }
};

client.send(JSON.stringify({"type":"stopusereventrequest"}));