-
Notifications
You must be signed in to change notification settings - Fork 217
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
WebSocket connection fails: one ore more reserved bits are on #260
Comments
I think I've tracked the error down to the following:
|
Hey @mindware So as you identified the websocket connection is dieing because of a server side issue I am guessing you are seeing something like the following in your server logs:
As you identified the config step is required for the websocket example. You can have your class inside a module, the config file that is expected for.
would be This is config in the example is intended as the channel that you are using to send the message is going to be specific to your application. For example a EM::Channel will be local to that process, if you were writing a websocket based chat client that was served from n goliath processes you would want to instead use something like redis with pub/sub. I believe this is the issue that you are seeing but I may be mistaken, as I am making some assumptions as there is no sample code. Perhaps splitting each of the examples out into their own directory would make it clearer what is required for each example? I believe there are some files that are used across examples tho that would need to be duplicated to do this. Also open to other suggestions or leaving it as is. |
i had the same issue, maybe a warning "config file is not found at the specified location" would be enough |
@nolman |
The websocket example, currently fails on a fresh ubuntu machine, when using chrome.
WebSocket connection to 'ws://localhost:9000/ws' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 0, reserved3 = 0
Additional info:
Using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Using em-websocket (0.3.8)
Using goliath (1.0.3)
Using eventmachine (1.0.3)
Using em-synchrony (1.0.3)
The text was updated successfully, but these errors were encountered: