Skip to content

Commit

Permalink
Merge pull request #1 from DanKnox/em-websocket-compatibility
Browse files Browse the repository at this point in the history
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 5bd9d86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/websocket/eventmachine/client.rb
Expand Up @@ -53,7 +53,7 @@ def initialize(args)
# @private # @private
def post_init def post_init
@state = :connecting @state = :connecting
@handshake = WebSocket::Handshake::Client.new(@args) @handshake = ::WebSocket::Handshake::Client.new(@args)
end end


# Called by EventMachine after connecting. # Called by EventMachine after connecting.
Expand All @@ -67,11 +67,11 @@ def connection_completed
private private


def incoming_frame def incoming_frame
WebSocket::Frame::Incoming::Client ::WebSocket::Frame::Incoming::Client
end end


def outgoing_frame def outgoing_frame
WebSocket::Frame::Outgoing::Client ::WebSocket::Frame::Outgoing::Client
end end


public public
Expand Down

0 comments on commit 5bd9d86

Please sign in to comment.