mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Keep track of request that originated socket.
This commit is contained in:
@@ -24,12 +24,10 @@ function Socket (id, server, transport) {
|
||||
this.upgraded = false;
|
||||
this.readyState = 'opening';
|
||||
|
||||
// keep some event handlers references around for later
|
||||
this.onClose = this.onClose.bind(this);
|
||||
this.onError = this.onError.bind(this);
|
||||
this.onPacket = this.onPacket.bind(this);
|
||||
|
||||
// keep track of request that originated the transport
|
||||
this.req = transport.req;
|
||||
this.setTransport(transport);
|
||||
this.onOpen();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user