eclipse-paho / eclipse-paho/paho.mqtt.python

Find no 'path=' option for single messages

Open
#732 1 comment 0 reactions 0 assignees View on GitHub
Status: Available Status: More info needed
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

Hi,
I want to send a single message to wss://mydomain/mqtt behind a proxy.

Mosquitto and NGINX work fine.
I can send messages via websocket to the defined path via MQTTX.
Same via full-client-code.

BUT using the single function, I see no option for path ("/mqtt")

If I use websocket without path but a special domain (wss://mqtt.mydomain), all works fine. But this is not my intention.

A code example:
```python
import paho.mqtt.publish as mqttpublish
import certifi
...
mqtt_auth = { 'username': USER, 'password': PASSWORD }
# where can i set the path='/mqtt'?
mqttpublish.single(TOPIC, payload=MSG, qos=1, retain=True, hostname=BROKER, port=443, client_id=CLIENTID, keepalive=60, will=None, auth=mqtt_auth, tls={'ca_certs':certifi.where()}, transport='websockets')
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.