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 wss:
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 https, 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!
@Dado sorry I’ve been away from development for some time and haven’t maintained good presence here either.
The dev environment changed drastically but I’d imagine I’ve made a change to something in Nginx. Sorry I don’t have the old config to dig out what I did!