Listener Configuration
In YedMQ , listener is configured to receive requests from MQTT clients.YedMQ support the following message transfer protocols, including:
- TCP: default port 1883
- SSL: default port 8883
- Websocket listener: 8083
- Secure websocket listener: 8084
- API listener: 3456
Configure TCP Listener
To configure the TCP listener in YedMQ, you can edit the listener.tcp configuration items in the yedmq.toml.
Default config item:
[listener.tcp]
external = "0.0.0.0:1883"
- external:set the IP address and port of the listener, it will listen to all incoming traffic on port 1883.
Configure SSL Listener
To configure the SSL listener in YedMQ, you can edit listener.ssl configuration items in the yedmq.toml.
Default config item:
[listener.tcp_tls]
external = "0.0.0.0:8883"
cert_file = ""
key_file = ""
- external: set the IP address and port of the listener, it will listen to all incoming traffic on port 8883.
- cert_file: PEM file containing the SSL/TLS certificate chain for the listener.
- key_file: PEM file containing te private key corresponding to the SSL/TLS certificate.
Configure WebSocket Listener
To configure the WebSocket listener in YedMQ, you can edit listener.ws configurtation items in the yedmq.toml.
Default config item:
[listener.ws]
external = "0.0.0.0:8083"
- external: set the IP address and port of the listener, it will listen to all incoming traffic on port 8083.
Configure WebSocket SSL Listener
To configure the WebSocket SSL Listener in YedMQ, you can edit listener.wss configuration items in the yedmq.toml.
Default config item:
[listener.wss]
external = "0.0.0.0:8084"
cert_file = ""
key_file = ""
- external: set the IP address and port of the listener, it will listen to all incoming traffic on port 8884.
- cert_file: PEM file containing the SSL/TLS certificate chain for the listener.
- key_file: PEM file containing te private key corresponding to the SSL/TLS certificate.
API Listener
To configure the API listener in YedMQ, you can edit listener.api configurtation items in the yedmq.toml.
Default config item:
[listener.api]
external = "0.0.0.0:3456"
- external: set the IP address and port of the listener, it will listen to all incoming traffic on port 3456.