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

Ensure ruby uses top-level WebSocket constant in client.rb. Provides em-websocket compatibility. #1

Merged
merged 1 commit into from Dec 26, 2012

Conversation

DanKnox
Copy link
Contributor

@DanKnox DanKnox commented Dec 26, 2012

This commit enables compatibility with the em-websocket server gem.

The em-websocket gem adds a WebSocket module under the EventMachine
namespace. The client.rb file references the WebSocket constant while
executing within the EventMachine namespace. Once em-websocket is
required, client.rb begins using the WebSocket module provided by
the em-websocket gem instead of the correct top-level constant that
it expects, resulting in undefined method exceptions.

This commit enables compatibility with the em-websocket server gem.

The em-websocket gem adds a WebSocket module under the EventMachine
namespace. The client.rb file references the WebSocket constant while
executing within the EventMachine namespace. Once em-websocket is
required, client.rb begins using the WebSocket module provided by
the em-websocket gem instead of the correct top-level constant that
it expects, resulting in undefined method exceptions.
imanel added a commit that referenced this pull request Dec 26, 2012
Ensure ruby uses top-level WebSocket constant in client.rb. Provides em-websocket compatibility.
@imanel imanel merged commit 5bd9d86 into imanel:master Dec 26, 2012
@imanel
Copy link
Owner

imanel commented Dec 26, 2012

Thanks - released as version 1.0.1 bugfix

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

Successfully merging this pull request may close these issues.

None yet

2 participants