Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websocket client in Erlang

I'd like to try to start using Erlang, and there's a data feed i'd like to read that's distributed via Websockets. Right now i'm doing the same in node.js using the 'websocket-client' module, but could someone suggest a websocket client library for Erlang that I could look at? (Or an alternative solution if I'm off the mark)

like image 415
noli Avatar asked Jun 16 '11 15:06

noli


People also ask

What is a WebSocket client?

As per the conventional definition, WebSocket is a duplex protocol used mainly in the client-server communication channel. It's bidirectional in nature which means communication happens to and fro between client-server.

What is WebSocket server and client?

The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.

Can a WebSocket have multiple clients?

A server can open WebSocket connections with multiple clients—even multiple connections with the same client. It can then message one, some, or all of these clients. Practically, this means multiple people can connect to our chat app, and we can message some of them at a time.

Can a WebSocket server send message to client?

WebSocket servers often send the same message to all connected clients or to a subset of clients for which the message is relevant.


1 Answers

Here is a promising one: https://github.com/jeremyong/websocket_client

This one didn't exist at the time the question was asked, but it's a good question that deserves to be updated.

like image 84
Viktor Söderqvist Avatar answered Nov 15 '22 19:11

Viktor Söderqvist