Skip to content

Commit

Permalink
fixup! feat: add forceNativeWebSocket client option
Browse files Browse the repository at this point in the history
style: fix lint
  • Loading branch information
EmixamPP committed Jul 25, 2024
1 parent a2b9686 commit 94b8323
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export default class MqttClient extends TypedEventEmitter<MqttClientEventCallbac
} else {
this.log(
'MqttClient :: environment',
(options.forceNativeWebSocket || isBrowser) ? 'browser' : 'node',
options.forceNativeWebSocket || isBrowser ? 'browser' : 'node',
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/connect/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,4 @@ const browserStreamBuilder: StreamBuilder = (client, opts) => {
return stream
}

export { browserStreamBuilder, streamBuilder };
export { browserStreamBuilder, streamBuilder }
Binary file added test-store_ApvD3c/000003.log
Binary file not shown.
1 change: 1 addition & 0 deletions test-store_ApvD3c/CURRENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MANIFEST-000002
Empty file added test-store_ApvD3c/LOCK
Empty file.
1 change: 1 addition & 0 deletions test-store_ApvD3c/LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024/07/25-15:59:34.614236 702a367fe640 Delete type=3 #1
Binary file added test-store_ApvD3c/MANIFEST-000002
Binary file not shown.

0 comments on commit 94b8323

Please sign in to comment.