mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Setting WebSocket buffer to empty once nonce is received (intended to include in previous commit)
This commit is contained in:
@@ -108,6 +108,7 @@ WebSocket.prototype._onConnect = function(req, socket){
|
||||
self.waitingForNonce = false;
|
||||
// Stuff the nonce into the location where it's expected to be
|
||||
self.upgradeHead = self.buffer.substr(0,8);
|
||||
self.buffer = '';
|
||||
if (self._proveReception(self._headers)) { self._payload(); }
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user