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
WebAuthnLiveComponent WebAuthnComponents
See this post about renaming the package.
Passwordless authentication for Phoenix LiveView app...
New
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
I released Doggo, a collection of unstyled Phoenix components.
https://github.com/woylie/doggo
Features
Unstyled Phoenix components....
New
Hi everyone,
I’ve been working on this protobuf library for 3 years. We use it in the company I work for, EasyMile, to communicate with ...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
I’ll shortly be launching Text, a nascent text analysis library.
Current functionality
In this early version (not ready for prime time) ...
New
Following on from my CLDR lbraries I started work on Unicode transforms. But like everything related to CLDR there is a lot of yak-shavin...
New
Other Trending Topics
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
New
What IDE or editor are you using for Elixir development?
Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
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
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming











Showing Posts 43 to 34- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
idi527
Oh, I haven’t thought about it. Is this check required by the spec?
If it is, something like cowlib/src/cow_ws.erl at master · ninenines/cowlib · GitHub can be adapted to work with iodata.
The validation in cowboy though happens only on the receiving end, it seems.
Azolo
Honestly, it probably is easier to use
IO.iodata_length. Feel free to open an issue or PR.The thing that I don’t know about is checking to see if
iodatais valid UTF8 for text frames. Currently I’m usingString.valid?/1. If I remember correctly it doesn’t work withiodata. If it does, then I am totally wrong and there is no problem at all.idi527
It seems like
websockexdoesn’t support iodata insend_frame?Wouldn’t it be easier to use
IO.iodata_lengthinstead of:erlang.byte_size? Since it works both on binaries and iolists.idi527
Hi @Azolo!
I wonder if it’s possible to use
WebSockexwith subprotocols? I can’t seem to find any mention of it neither in the docs nor in code …EDIT:
seems to work fine.
gordoneliel
How were you able to connect to the socket.io client? Do you have any sample code?
NobbZ
Ulimit does only increase the softlimit which can never be higher than the hard limit. The hardlimit needs to be increased first, on most systems you can do so via sysctl AFAIR.
Im in mobile so it’s hard to do a proper check right now.
indera
@Azolo thank you for the prompt response… I increased the number of “open files” to 200K but still no luck.
I changed the code to display a specific error in
websockex/websockex/conn.ex
so it looks like this is triggered in a “SEND”.
How would you recommend to debug the
“conn.conn_mod.send(conn.socket, message)” call?
===== Fragment of code which you can test
Azolo
I would guess that is probably an OS file descriptor limit, but other than that I don’t know.
Mt best guess would be to try increasing the maximum file descriptors on the server and client using
ulimit -n.indera
@Azolo Is there a OS configuration necessary to be able to create 1K websockets connecting to the same Phoenix instance. I am getting this error
{:error, %WebSockex.ConnError{original: :closed}}
Azolo
Hopefully anytime that the process is going to exit for whatever reason.
If there is a time that terminate isn’t called then it is considered a bug.