You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -807,14 +807,12 @@ Closes the Store.
807
807
## Browser
808
808
809
809
> [!IMPORTANT]
810
-
> The only protocol supported in the browser is MQTT over WebSockets, so you must use `ws://` or `wss://`URLs.
810
+
> The only protocol supported in browsers is MQTT over WebSockets, so you must use `ws://` or `wss://`protocols.
811
811
812
-
While in NodeJS the [ws](https://www.npmjs.com/package/ws) module is used, in the browser the [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) is used.
812
+
While the [ws](https://www.npmjs.com/package/ws) module is used in NodeJS, [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) is used in browsers. This is totally transparent to users except for the following:
813
813
814
-
This is totally transparent to users except for the following:
815
-
816
-
- The `wsOption` is not supported in the browser.
817
-
- Browser doesn't allow to catch many WebSocket errors for [security reasons](https://stackoverflow.com/a/31003057) as:
814
+
- The `wsOption` is not supported in browsers.
815
+
- Browsers doesn't allow to catch many WebSocket errors for [security reasons](https://stackoverflow.com/a/31003057) as:
818
816
819
817
> Access to this information could allow a malicious Web page to gain information about your network, so they require browsers report all connection-time errors in an indistinguishable way.
0 commit comments