Permalink
Browse files

Merge pull request #1 from DanKnox/em-websocket-compatibility

Ensure ruby uses top-level WebSocket constant in client.rb. Provides em-websocket compatibility.
  • Loading branch information...
imanel committed Dec 26, 2012
2 parents 47262a5 + 60ebcba commit 5bd9d86787f3e4561f76d9e2411c587f1e9a08d0
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/websocket/eventmachine/client.rb
@@ -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

0 comments on commit 5bd9d86

Please sign in to comment.