Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Aug 2, 2023
1 parent f99164d commit 259481f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ Closes the Store.
MQTT.js is bundled using [browserify](http://browserify.org/). You can find the browser build in the `dist` folder.

```js
import mqtt from 'mqtt/dist/mqtt.min'
import * as mqtt from 'mqtt/dist/mqtt.min'
```

<a name="cdn"></a>
Expand All @@ -796,7 +796,7 @@ See <http://unpkg.com> for the full documentation on version ranges.
If you are using webpack simply import MQTT.js as you would any other module.

```js
import mqtt from 'mqtt'
import * as mqtt from 'mqtt'

const client = mqtt.connect('ws://test.mosquitto.org:8080')
```
Expand Down

0 comments on commit 259481f

Please sign in to comment.