Skip to content

Commit 6fe919f

Browse files
committed
docs: better wording
1 parent c8b6695 commit 6fe919f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,12 @@ Closes the Store.
807807
## Browser
808808

809809
> [!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.
811811
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:
813813

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:
818816

819817
> 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.
820818

0 commit comments

Comments
 (0)