diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2024-01-16 15:37:07 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2024-01-16 15:37:07 +0000 |
commit | a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (patch) | |
tree | d733e3560e2734d7bfdd4c92df6ad3736e3a1e0b /src/nodejs/unit-http/websocket_connection.js | |
parent | 5a8337933df1cf3aba967d86549e236dd9173386 (diff) | |
download | unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.gz unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.bz2 |
White space formatting fixes
Closes: <https://github.com/nginx/unit/pull/1062>
Diffstat (limited to '')
-rw-r--r-- | src/nodejs/unit-http/websocket_connection.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodejs/unit-http/websocket_connection.js b/src/nodejs/unit-http/websocket_connection.js index 4eccf6bf..c04075d7 100644 --- a/src/nodejs/unit-http/websocket_connection.js +++ b/src/nodejs/unit-http/websocket_connection.js @@ -36,11 +36,11 @@ var idCounter = 0; function WebSocketConnection(socket, extensions, protocol, maskOutgoingPackets, config) { this._debug = utils.BufferingLogger('websocket:connection', ++idCounter); this._debug('constructor'); - + if (this._debug.enabled) { instrumentSocketForDebugging(this, socket); } - + // Superclass Constructor EventEmitter.call(this); @@ -432,8 +432,8 @@ WebSocketConnection.prototype.processFrame = function(frame) { // logic to emit the ping frame: this is only done when a listener is known to exist // Expose a function allowing the user to override the default ping() behavior var cancelled = false; - var cancel = function() { - cancelled = true; + var cancel = function() { + cancelled = true; }; this.emit('ping', cancel, frame.binaryPayload); |