Azolo
Hey everyone,
I just released WebSockex which is a Elixir WebSocket client.
WebSockex strives to work as a OTP special process, be RFC6455 compliant, and be simple to use by providing smart defaults for common actions.
Take a look and let me know about any questions, suggestions, or any other comments you may have,
Trending in Announcing
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library.
The progre...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
Other Trending Topics
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
If you haven’t tried Hologram yet, what’s stopped you?
Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn:
This is possible because it now builds on a very stab...
New
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #elixirconf-eu
- #security
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Azolo
Currently SSL peers aren’t verified. I tried to figure out how to make it work, but it seems really DIY in the underlying Erlang
:sslmodule.If anyone has any advice on how to handle this it would be much appreciated.
jackalcooper
Good library. I like the idea to map WS to a process. The WS library I’m using now doesn’t provide process abstraction so I have to implement it every time.
ericTsiliacos
Does your library support reconnect? When the server goes down, we’d like the websocket client to try to reconnect indefinitely.
Azolo
It does, take a look at the docs for
handle_disconnect.hildersantos
Thanks for sharing this with the community. I was looking for something exactly like this - I’m developing some API clients right now, and one of them needs to connect with a WebSocket. I guess this will help me a lot!
I’ll test it on the coming days.
Thanks again!
Jonathan
Awesome work, Im having some trouble though, how do i send json, im currently trying
Client.send_frame(pid, {:text, "{'Page':{'url':'asdf'}}"})but i get the response `Received Message: {“error”:{“code”:-32700,“message”:“Message must be a valid JSON”}}`` from the connected server.. any help would be appreciatedzambal
JSON should be double quoted, but I would just use a JSON encoder instead of manually writing it out:
Jonathan
thanks! the double quote did the trick, but yeah, probably better to use an encoder..
Azolo
WebSockex 0.1.3 Released!
The ChangeLog for this release includes:
Client.start_linkwill no longer cause the calling process to exit onconnection failure and will return a proper error tuple instead.
WebSockex.Conn.RequestErrortoWebSockex.RequestError.handle_connect_failureto be invoked after initiating a connectionfails. Fixes #5
Checkout the
v0.1.2..v0.1.3diff for more info.Azolo
WebSockex 0.2.0 Released!
This release has some major API changes where callbacks are changed or removed without deprecation.
The affected callbacks are:
init/2- Removed in favor ofhandle_connect/2.handle_disconnect/2- The first argument is now a map.handle_connect_failure/2- Removed with functionality rolled intohandle_disconnect/2.Please don’t be afraid to provide feedback.
WebSockexis already meeting my needs, I’d like more information on what needs to change to meet the needs of others.The full changelog for this release includes:
Major Changes
WebSockex.Clientmodule functionality into the baseWebSockexmodule.handle_connect_failurefunctionality intohandle_disconnect.initfunctionality intohandle_connectDetailed Changes
initfunctionality intohandle_connecthandle_connectwill be invoked upon establishing any connection, i.e., the intial connection and when reconnecting.initcallback is removed entirely.WebSockex.Clientmodule functionality into the baseWebSockexmodule.Applicationmodule toWebSockex.Application.WebSockex.startfor non-linked processes.asyncoption tostartandstart_link.handle_connect_failurefunctionality intohandle_disconnect.handle_disconnectis now a map with the keys::reason,:conn, and:attempt_number.handle_disconnectnow has another return option for when wanted to reconnect with different URI options or headers:{:reconnect, new_conn, new_state}:handle_initial_conn_failureoption to the options forstartandstart_linkthat will allowhandle_disconnectto be called if we can establish a connection during those functions.handle_connect_failureentirely.Checkout the
v0.1.3..v0.2.0diff for more info.