Skip to content

Commit 5b95903

Browse files
committed
[Docs Site] Remove trailing spaces
1 parent bef38e0 commit 5b95903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/pub-sub/learning/websockets-browsers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In this example, we use MQTT.js’s WebSocket support to subscribe to a topic an
3535

3636
:::note
3737

38-
You can view a live demo available at [demo.mqtt.dev](http://demo.mqtt.dev) that allows you to use your own Pub/Sub Broker and a valid token to subscribe to a topic and publish messages to it.
38+
You can view a live demo available at [demo.mqtt.dev](http://demo.mqtt.dev) that allows you to use your own Pub/Sub Broker and a valid token to subscribe to a topic and publish messages to it.
3939
:::
4040

4141
In a real-world deployment, our publisher could be another client, a native MQTT client, or a WebSocket client running on a remote server elsewhere.
@@ -54,7 +54,7 @@ function example(url) {
5454
password: jwt, // pass this from a form field in your app
5555
clientId: '',
5656
})
57-
57+
5858
client.on('connect', function () {
5959
client.subscribe(topic, function (err) {
6060
if (err) {
@@ -63,7 +63,7 @@ function example(url) {
6363
console.log(`subscribed to ${topic}`)
6464
}
6565
})
66-
66+
6767
client.on('message', function (topic, message) {
6868
let line = (new Date()).toLocaleString('en-US') + ": " + message.toString() + "\n";
6969
console.log(line)

0 commit comments

Comments
 (0)