~naglis/aio_mpv_ipc

0045208cb165f6e954f146ff65a61e91acdd9b23 — Naglis Jonaitis 11 months ago 0ffcd14
Expose socket path property on client
1 files changed, 4 insertions(+), 0 deletions(-)

M aio_mpv_ipc/_client.py
M aio_mpv_ipc/_client.py => aio_mpv_ipc/_client.py +4 -0
@@ 94,6 94,10 @@ class MpvClient:
            str, typing.Set[asyncio.Queue]
        ] = collections.defaultdict(set)

    @property
    def socket_path(self) -> pathlib.Path:
        return self._socket_path

    def subscribe(self, event_name: str, queue: asyncio.Queue):
        self._event_subscribers[event_name].add(queue)