Hi, I’m looking for a way to create a good old web socket and to send data from and to the browser. The result is going to end up in xterm.js (browser-based terminal), so the whole channels thing is out of the question (I don’t want to re-write xterm.js just to support channels).
I’ve tried phx_raws, but Phoenix still wants to mess with the messages the process gets and breaks stuff.
I’ve looked at overwriting HTTP: on the config, but that breaks the live reloader.
I’m quite lost here, I just want a good old WebSocket, the logic is super simple: if it receives {:binary, bla}
from the socket, it calls a library, if it receives {:data, bla}
it sends it to the socket. A bit auth sprinkled on it, and that’s it (literally a copy of this https://gitlab.com/Project-FiFo/FiFo/wiggle/blob/test/src/wiggle_console_h.erl).
Any advice, am I missing a flag to turn off ‘magic’?