Page tree
Skip to end of metadata
Go to start of metadata

The WebSocket API is our preffered method of delivering you your end-device data

  • It's cloud-friendly (existing HTTP traffic optimization can be used)
  • It's bi-directional, real-time interface
  • It's easy to implement
  • It's lower overhead compared to REST
  • It's already supported in all major web browsers
  • It's already supported in many programming languages

How to connect

Go to your application page and note the WebSocket URL (it starts with wss://).

Using your favorite programming language, connect to the WebSocket.

If you don't know WebSockets already, have a look at the RFC. In simple terms, it's just a protocol on top of HTTP, initiated by a HTTP Upgrade request.

We offer a number of WebSocket sample applications. They are listed in the "Output" page of the application detail.

We only support secure (TLS) WebSockets, plaintext WebSockets are not allowed.

Once you get a 101 response to your Upgrade request, the WebSocket connection succeeded and can now listen for incoming data.

  • No labels