Web socket - persistent connection

socket.io is not supported directly with Losant. Since this post was original created, however, we have released Streaming Endpoints, which utilizes Server-Sent Events under the hood.

Server-sent events provide real-time streaming of data in one direction: from the server to the client (usually a web browser).

To send data from the client to the server, a basic POST request to a standard Experience Endpoint works very well.