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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
18 2 1 3

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 512.0 KiB each and 1.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

· Write an Answer
Upvotes
Accepted
22.1k 59 14 21

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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