imanel / websocket-eventmachine-client

WebSocket client for Ruby
74 stars 18 forks source link

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

Closed DanKnox closed 11 years ago

DanKnox commented 11 years ago

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 commented 11 years ago

Thanks - released as version 1.0.1 bugfix