File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ async def read(self) -> t.AsyncGenerator[bytes, None]:
50
50
def write (self , frame : bytes ) -> None :
51
51
"""
52
52
Writes a frame to the stream, unless the stream is closing.
53
+
54
+ :param frame: Frame to send to this client.
53
55
"""
54
56
if self ._writer .is_closing ():
55
57
return
@@ -68,8 +70,12 @@ async def serve_forever(host: str, port: int) -> None:
68
70
"""
69
71
pybroker core server loop.
70
72
71
- Accept clients on :param:`host`::param:`port` and broadcast any frame
72
- received from any client to all other clients."""
73
+ Accept clients on :code:`host`::code:`port` and broadcast any frame
74
+ received from any client to all other clients.
75
+
76
+ :param host: IP, where the broker will be reachable on.
77
+ :param port: port, on which the broker will listen on.
78
+ """
73
79
clients : list [Client ] = []
74
80
list_lock = asyncio .Lock ()
75
81
You can’t perform that action at this time.
0 commit comments