File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ in JavaScript to be used in node.js.
10
10
11
11
## Example
12
12
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.
18
16
19
17
Install mqtt
20
18
```
@@ -42,6 +40,12 @@ output:
42
40
Hello mqtt
43
41
```
44
42
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
+
45
49
## Important notes for existing users
46
50
47
51
* v0.3.0 improves connection stability, performance, the reconnection
You can’t perform that action at this time.
0 commit comments