addMosquitto
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addMosquitto( name: string, port?: number): MosquittoServerResource;}Signature
method
addMosquitto builderAdds a Mosquitto container resource to the application. Mosquitto is an open source MQTT message broker, so the resource can be referenced by any MQTT client integration.
addMosquitto( name: string, port?: number): MosquittoServerResourceParameters
namestringThe name of the resource. This name is used as the connection string name when referenced in a dependency.portnumberoptionalThe host port that the MQTT endpoint is exposed on. If `null` a random port is assigned.Returns
MosquittoServerResource Applies to
This method applies to the following types: