File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,14 @@ To use the MQTT transporter, pass the following options object to the `createMic
19
19
const app = await NestFactory .createMicroservice <MicroserviceOptions >(ApplicationModule , {
20
20
transport: Transport .MQTT ,
21
21
options: {
22
- host: ' localhost' ,
23
- port: 1883 ,
22
+ url: ' mqtt://localhost:1883' ,
24
23
},
25
24
});
26
25
@@switch
27
26
const app = await NestFactory .createMicroservice (ApplicationModule , {
28
27
transport: Transport .MQTT ,
29
28
options: {
30
- host: ' localhost' ,
31
- port: 1883 ,
29
+ url: ' mqtt://localhost:1883' ,
32
30
},
33
31
});
34
32
```
@@ -53,8 +51,7 @@ One method for creating an instance is to use use the `ClientsModule`. To create
53
51
name: ' MATH_SERVICE' ,
54
52
transport: Transport .MQTT ,
55
53
options: {
56
- host: ' localhost' ,
57
- port: 1883 ,
54
+ url: ' mqtt://localhost:1883' ,
58
55
}
59
56
},
60
57
]),
You can’t perform that action at this time.
0 commit comments