Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed May 11, 2019
1 parent 13f17f7 commit 90235d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mqttools/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ async def getsockname(self):
return self._listener.sockets[0].getsockname()

async def run(self):
"""Setup a listener socket and forever serve clients. This coroutine
only ends if cancelled by the user.
"""

self._listener = await asyncio.start_server(self.serve_client,
self._host,
self._port)
Expand Down

0 comments on commit 90235d4

Please sign in to comment.