Skip to content

Commit 650699a

Browse files
spacemanspiff2007Frederik Aalund
authored andcommitted
add unix transport
1 parent 61ed18f commit 650699a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiomqtt/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Client:
144144
client when it disconnects. If ``False``, the client is a persistent client
145145
and subscription information and queued messages will be retained when the
146146
client disconnects.
147-
transport: The transport protocol to use. Either ``"tcp"`` or ``"websockets"``.
147+
transport: The transport protocol to use. Either ``"tcp"``, ``"websockets"`` or ``"unix"``.
148148
timeout: The default timeout for all communication with the broker in seconds.
149149
keepalive: The keepalive timeout for the client in seconds.
150150
bind_address: The IP address of a local network interface to bind this client
@@ -190,7 +190,7 @@ def __init__( # noqa: C901, PLR0912, PLR0913, PLR0915
190190
protocol: ProtocolVersion | None = None,
191191
will: Will | None = None,
192192
clean_session: bool | None = None,
193-
transport: Literal["tcp", "websockets"] = "tcp",
193+
transport: Literal["tcp", "websockets", "unix"] = "tcp",
194194
timeout: float | None = None,
195195
keepalive: int = 60,
196196
bind_address: str = "",

0 commit comments

Comments
 (0)