Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection closed before receiving a handshake response #424

Open
wonderer007 opened this issue Jul 20, 2016 · 5 comments
Open

Connection closed before receiving a handshake response #424

wonderer007 opened this issue Jul 20, 2016 · 5 comments

Comments

@wonderer007
Copy link

wonderer007 commented Jul 20, 2016

I am using websockets-rials using this guid http://websocket-rails.github.io/ but when i try to connect using javascript

var dispatcher = new WebSocketRails('localhost:3000/websocket');

it gives following error in console after few seconds

WebSocket connection to 'ws://localhost:3000/websocket' failed: Connection closed before receiving a handshake response

I am running all the default configurations of websockets-rails mentioned in above documentation

Thanks

@terry8x
Copy link

terry8x commented Jul 20, 2016

explicitly specifying gem 'faye-websocket, '0.10.0'

@wonderer007
Copy link
Author

@Nash-github thanks it works for me

@wonderer007
Copy link
Author

This is working perfectly on development, But not on production where I have nginx and puma running.

@phlegx
Copy link

phlegx commented Sep 9, 2016

Solved in pull request #430 and working with faye-websocket 0.10.4!

@davidmau
Copy link

davidmau commented Jan 31, 2021

using gem 'faye-websocket', '0.10.0' worked for me. version 0.10.4 did not work. Neither did version 0.11.0. Note that the problem arose when I upgraded to rails 5.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants