You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I using Rails 4.1.5, Ruby 2.2.3 and ngnix on staging environment. Installed and configured websocket on development environment without any issues.Staging environment started getting the following error when I deployed: WebSocket connection to 'wss://staging.example.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 301
I using Rails 4.1.5, Ruby 2.2.3 and ngnix on staging environment. Installed and configured websocket on development environment without any issues.Staging environment started getting the following error when I deployed:
WebSocket connection to 'wss://staging.example.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 301
Here is my ngnix configuration:
JS:
var dispatcher = new WebSocketRails(window.document.location.host + '/websocket');
config/staging.rb
config.force_ssl = true
Tried different ngnix settings but didn't work. Where I'm doing the mistake ?
The text was updated successfully, but these errors were encountered: