volkovsullivan
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: module.exports = io => { io.on("connection", socket => { ... sock - Pastebin.com
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: engine handshaking client "qBRv54Hv5Ro4EfRlAAAF" +30s engine:socket sending - Pastebin.com
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: engine handshaking client "oRM07upHTq4CdGjOAAAE" +14m engine:socket sending - Pastebin.com
Here the Elixir server code: defmodule Scenario.WS.PingPong do use Chaperon.Scenario def init(session - Pastebin.com
Any idea?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










