Remove some comments.
This commit is contained in:
@@ -21,10 +21,7 @@ var instance = {
|
||||
'Connection: Upgrade\r\n' +
|
||||
'WebSocket-Origin: ' + this._socket.request.headers.origin + '\r\n' +
|
||||
'WebSocket-Location: ' + this._socket.url + '\r\n\r\n');
|
||||
} catch (e) {
|
||||
// socket closed while writing
|
||||
// no handshake sent; client will stop using WebSocket
|
||||
}
|
||||
} catch (e) {}
|
||||
},
|
||||
|
||||
parse: function(data) {
|
||||
|
||||
@@ -139,10 +139,7 @@ var instance = {
|
||||
'Upgrade: websocket\r\n' +
|
||||
'Connection: Upgrade\r\n' +
|
||||
'Sec-WebSocket-Accept: ' + accept + '\r\n\r\n');
|
||||
} catch (e) {
|
||||
// socket closed while writing
|
||||
// no handshake sent; client will stop using WebSocket
|
||||
}
|
||||
} catch (e) {}
|
||||
},
|
||||
|
||||
createHandshake: function() {
|
||||
|
||||
Reference in New Issue
Block a user