Skip to content

Commit

Permalink
fix: debug option not work (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain authored May 14, 2024
1 parent 4abec32 commit 6e207af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reconnecting-websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default class ReconnectingWebSocket {
}

private _debug(...args: any[]) {
if (!this._debug) {
if (!this._options.debug) {
return;
}
this._logger.log('RWS>', ...args);
Expand Down

0 comments on commit 6e207af

Please sign in to comment.