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.