Can't communicate with Node.js socket.io server from Elixir

Hi guys,

I have a Node.js socket.io server and I’m trying to make it communicate with an Elixir server, but I encounter some issues.

On the Node.js server there is the following code: https://pastebin.com/B7XLxaCm

If I connect to the server and send the xxx message from socket.io-client JS library, everything goes as expected, here the Node.js server debug output: https://pastebin.com/aqh4Nwq6

But if I connect to the server and send the xxx message from Elixir (making use of Websockex), the Node.js server gets the packet but doesn’t go further (it doesn’t parse it). Here the server output: https://pastebin.com/ZbQ8DJH1

Here the Elixir server code: https://pastebin.com/0U1DMKzf

Any idea?

1 Like