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

Merged
merged 1 commit into from Dec 26, 2012
@@ -53,7 +53,7 @@ def initialize(args)
# @private
def post_init
@state = :connecting
- @handshake = WebSocket::Handshake::Client.new(@args)
+ @handshake = ::WebSocket::Handshake::Client.new(@args)
end
# Called by EventMachine after connecting.
@@ -67,11 +67,11 @@ def connection_completed
private
def incoming_frame
- WebSocket::Frame::Incoming::Client
+ ::WebSocket::Frame::Incoming::Client
end
def outgoing_frame
- WebSocket::Frame::Outgoing::Client
+ ::WebSocket::Frame::Outgoing::Client
end
public