sbtinstruments / aiomqtt

The idiomatic asyncio MQTT client, wrapped around paho-mqtt
https://sbtinstruments.github.io/aiomqtt
BSD 3-Clause "New" or "Revised" License
393 stars 71 forks source link

FEATURE: asyncio_mqtt UNIX sock support #259

Closed fariz-muradov-inno2grid closed 5 months ago

fariz-muradov-inno2grid commented 6 months ago

I wonder does this library support UNIX sock file or not to connect ECLIPSE MOSQUITTO via MQTT protocol?

empicano commented 5 months ago

Hi there,

Thanks for this issue and sorry for the late reply on this!

I don't think it does. I can't find much on the subject, can you point me to some resources explaining this further? As aiomqtt is built on top of paho-mqtt, we can only support features that paho-mqtt itself implements. @frederikaalund, do you know more about this?

frederikaalund commented 5 months ago

Hi Fariz, thank you for opening this issue.

The short answer is: No, unfortunately we do not support Unix domain sockets. Like @empicano already mentioned, we support the same connection feature set as the underlying paho-mqtt library.

Depending on your use case, you could "pipe" the UDS to TCP via, e.g., ssh, socat or the like. That, however, is out of scope of what we can assist you with here in this bugtracker.

I hope that helps you solve your issue.

fariz-muradov-inno2grid commented 5 months ago

Thanks. I am using socat already. Just looked some way to make native configs.

Thanks a lot for response and clarifications.

TLP:GREEN

From: Frederik Aalund @.> Date: Tuesday, 23 January 2024 at 10:40 To: sbtinstruments/aiomqtt @.> Cc: Fariz Muradov @.>, Author @.> Subject: Re: [sbtinstruments/aiomqtt] FEATURE: asyncio_mqtt UNIX sock support (Issue #259)

Hi Fariz, thank you for opening this issue.

The short answer is: No, unfortunately we do not support Unix domain sockets. Like @empicanohttps://github.com/empicano already mentioned, we support the same connection feature set as the underlying paho-mqtt library.

Depending on your use case, you could "pipe" the UDS to TCP via, e.g., ssh, socat or the like. That, however, is out of scope of what we can assist you with here in this bugtracker.

I hope that helps you solve your issue.

— Reply to this email directly, view it on GitHubhttps://github.com/sbtinstruments/aiomqtt/issues/259#issuecomment-1905662937, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYQIJZEIYXGMVCUQP3UR7RDYP6ARFAVCNFSM6AAAAABAUUFFS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGY3DEOJTG4. You are receiving this because you authored the thread.Message ID: @.***>