For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
18 2 0 1

Elektron WebSocket API - Explicity send Logout message?

I've been reviewing the documentation for the Elektron WebSocket API. When using the API do I need to explicitly send a 'Logout' message? Or does the API logout if a user's connection is lost/doesn't recieve a ping?

treprdp-apiwebsocketsrrto
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

I'm referring to this message that's document in the API. The 'Close' Messsage for Login:


{
        "Domain":"Login",
        "ID": -1,
        "Type":"Close"
      }

1 Answer

Upvotes
Accepted
13k 32 12 18

Hi @jonathan.powell,

The infrastructure will automatically logout the user if the connection is terminated. It will also terminate the connection, if the reply to ping message is not received.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea