Skip to content

Commit

Permalink
Use engine.io socket id.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsm committed Apr 11, 2016
1 parent e51785d commit 4852a04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/transport/engine.io/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ exports.createStream = function createStream(socket) {
stream.remoteAddress = socket.hostname
} else if (socket.request) {
// server side connection socket
stream.socket = socket
stream.id = socket.id
stream.localPort = socket.request.connection.localPort
// Use id as remotePort if we don't have that information
var remotePort = socket.request.connection.remotePort
Expand Down

0 comments on commit 4852a04

Please sign in to comment.