Permalink
Browse files

Property for the remote address of a socket.

  • Loading branch information...
1 parent dabf7af commit ab5cfdeebb8c1d82e67388decee9b7f2464293fa @stephank stephank committed Oct 21, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/transport.coffee
View
@@ -78,6 +78,11 @@ class Session
@recv = recv
@recv.session = @
+ # Store the last known address.
+ unless socket = @recv.connection
+ socket = @recv.response.connection
+ @connection.remoteAddress = socket.remoteAddress
+
# first, send the open frame
if @readyState is Transport.CONNECTING
@recv.doSendFrame('o')

0 comments on commit ab5cfde

Please sign in to comment.