Keep track of request that originated socket.

This commit is contained in:
Guillermo Rauch
2012-01-03 10:36:49 -08:00
parent 817ddee41f
commit 61ec2d92dc

View File

@@ -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();
}
/**