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)
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.
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.
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.
WebSocket servers often send the same message to all connected clients or to a subset of clients for which the message is relevant.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With