Skip to content

Commit 1437321

Browse files
committed
python/iqm: allow connecting to local broker over WebSockets
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
1 parent 735262c commit 1437321

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

python/its-interqueuemanager/its-iqm.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ host = 127.0.0.1
3333
port = 1883
3434
# Whether to connect using TLS over TCP; default: use TLS, unless port == 1883
3535
# tls = True|False
36-
# Path to the UNIX socket to connect to; if specified, host, port, and tls are ignored
36+
# Path of the websocket; if unset, do not use WebSockets; default: unset
37+
#websocket_path = /mqtt
38+
# Path to the UNIX socket to connect to; if specified, host, port, tls, and
39+
# websocket_path are ignored
3740
#socket-path = /run/mqtt-broker/socket
3841
# Username and password to authenticate with against the local broker,
3942
# empty or unset username for no authentication; default: unset

python/its-interqueuemanager/src/its_iqm/iqm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def __init__(
9898
conn["host"] = cfg["local"]["host"]
9999
conn["port"] = int(cfg["local"]["port"])
100100
conn["tls"] = str2bool(cfg["local"].get("tls"))
101+
conn["websocket_path"] = cfg["local"].get("websocket_path")
101102

102103
qm_data = {
103104
"copy_qm": None,

0 commit comments

Comments
 (0)