Skip to content

Commit 47ba007

Browse files
committed
Added a reference in the readme to examples/server/orig.js
1 parent ecd21cc commit 47ba007

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ in JavaScript to be used in node.js.
1010

1111
## Example
1212

13-
First you'll need to run [Mosca](http://mcollina.github.io/mosca/) - a MQTT broker written in node.js
14-
```
15-
npm install mosca -g
16-
mosca -v
17-
```
13+
First you will need to install and run a broker, such as
14+
[Mosquitto](http://mosquitto.org) or
15+
[Mosca](http://mcollina.github.io/mosca/), and launch it.
1816

1917
Install mqtt
2018
```
@@ -42,6 +40,12 @@ output:
4240
Hello mqtt
4341
```
4442

43+
If you do not want to install a separate broker, you can try using the
44+
[server/orig](https://github.com/adamvr/MQTT.js/blob/master/examples/server/orig.js)
45+
example.
46+
It implements enough of the semantics of the MQTT protocol to
47+
run the example.
48+
4549
## Important notes for existing users
4650

4751
* v0.3.0 improves connection stability, performance, the reconnection

0 commit comments

Comments
 (0)