Applies to: reference, configuration

Event Broker Service Settings

These settings configure the event broker’s logging outputs (all logs to stdout and a file), define listeners for MQTT (port 1883) and WebSocket (port 9001) protocols using IPv4.

Format Path Filename Purpose
TEXT ./conf/mops-event-broker/ eventbroker.config MQTT & websockets configuration

Configuration file example:

# Configure logging
log_type all 
log_dest stdout
log_dest file C:\mops\logs\eventbroker.log

# Port to use for the default listener.
listener 1883
protocol mqtt
listener 9001
protocol websockets
socket_domain ipv4

Description of eventbroker.config keys and values:

Name Type Description
log_type string Log type. Typically all
log_dest string Can be multiple. Typically stdout or file .
listener int Listener and protocol are added in pairs. Typically 1883 or 9001
protocol string Listener and protocol are added in pairs. Typically mqtt or websockets
socket_domain string Limiting sockets to ipv4 is currently needed for websockets protocol