Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Feb 19, 2024
1 parent 8be35df commit 055d5c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/Socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Socket {
this._heartbeatId = setTimeout(() => {
this.terminate();
}, PING_INTERVAL + PING_LATENCY_TOLERANCE);
}
};

heartbeat();

Expand Down
4 changes: 4 additions & 0 deletions src/common/BaseSharedStateCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class BaseSharedStateCollection {
* const schema = collection.getSchema();
*/
getSchema(name = null) {
if (name) {
return this._schema[name];
}

return this._schema;
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/Socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Socket {
/** @private */
this._binaryListeners = new Map();
/** @private */
this._heartbeatId
this._heartbeatId = null;

// heartbeat system (run only on string socket), adapted from:
// https://github.com/websockets/ws#how-to-detect-and-close-broken-connections
Expand Down

0 comments on commit 055d5c4

Please sign in to comment.