Trying to get Phoenix Socket Service (in an Ember front end app) to connect to a Phoenix app but I’m getting the following error when using
failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED
Things work in dev when using
ws only. Not sure if I’d be able to get
wss working in dev?
In production, given my content is restricted to
wss is the only allowed option.
I have to admit, first time attempting to deploy with forced websocket secure traffic but I managed to get nginx proxy /websocket/ to the backend but still get the following error knowing that I have a self-signed cert on the server:
failed: Error during WebSocket handshake: Unexpected response code: 200
What can I do to get this working in dev and prod?
Any and all hints are appreciated, so thanks in advance!