Receiving WebSocket connect to 'wss://hostname:3035/ws' failed #54
Replies: 3 comments 3 replies
-
If anything you might be facing Webpack rather than Shakapacker change. Default socket communication has changed from sockjs to native websocket (https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver) - if you weren't using You will need to play around with the dev server config and/or your docker setup. Try modifying it to use Might not be matching what you have there but I had to change the following to get everything working smoothly with locals Rails app but connecting through dockerised nginx. In dev server config in
In nginx config, new path added:
|
Beta Was this translation helpful? Give feedback.
-
I converted this to a discussion as this seems to be more of a webpack and not shakapacker issue. |
Beta Was this translation helpful? Give feedback.
-
My belief is that our system might be too complex in this case -- given that we can't inject ENV variables into the webpacker.yml file....which pretty much tracks our hostname for subdomain related functionality. |
Beta Was this translation helpful? Give feedback.
-
During deployments to dev/production servers, everything works perfectly fine with websockets. Now, I am trying to use shakapacker on Docker and I receive "Unable to process ChannelName#action" Is there anything specific that I have to do, in order to communicate with web sockets using this version? I'm running Redis on the same container as the rails app and I am able to connect to it using 127.0.0.1. Every time that I use docker, I see [webpack-dev-server] Trying to reconnect.....? WebSocketClient @ WebSocketClient.js.
Beta Was this translation helpful? Give feedback.
All reactions