Comments (2)
I think this SO answer could be implemented to add some token to create separate MqttService
instances.
However, I am quite new to Nest to fully understand it. As I see it, we could add aditional, optional token
property to MqttModuleOptions
and MqttModuleAsyncOptions
, right?
from nest-mqtt.
NestJS use string token as the identifier of instance container(In NestJS v8 using object reference for Class Provider).
nest-mqtt
using a constant key as mqtt instance token and can't extend anymore.
Add multiple instance support is easy, but this lib should add multiple client getter, operator and event identifier at the same time what may cause a breaking change.
from nest-mqtt.
Related Issues (14)
- `nest-mqtt` does not work over websockets HOT 1
- Is latest version `0.1.5` or `0.1.6`? HOT 1
- MQTT connection is not closing properly on application shutdown
- Please update MQTT to the latest version 4.3.5 HOT 2
- publish method don't need stringify message HOT 2
- mqtt loop connect and disconnect while backend lost connection because of the same clientId
- Tried to publish a string but received an error HOT 1
- Doesnโt subscribe to topic after reconnect
- multiple mqtt clients using forRootAsync
- Tried to publish but returned TypeError: this.mqttService.publish is not a function
- Issue when publishing binary buffer or Uint8Array HOT 1
- issue in nestjs 8 HOT 1
- Nest cannot export a provider/module that is not a part of the currently processed module (MqttModule). Please verify whether the exported MqttService is available in this particular context. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-mqtt.