Skip to content

Commit 66884e2

Browse files
committed
documentation update
1 parent 379c9d3 commit 66884e2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

rsocket/request_handler.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,29 @@ async def request_stream(self, payload: Payload) -> Publisher:
5959

6060
@abstractmethod
6161
async def on_error(self, error_code: ErrorCode, payload: Payload):
62-
...
62+
"""
63+
Handle errors received from the remote side
64+
"""
6365

6466
@abstractmethod
6567
async def on_keepalive_timeout(self,
6668
time_since_last_keepalive: timedelta,
6769
rsocket):
68-
...
70+
"""
71+
Handle keepalive timeout
72+
"""
6973

7074
@abstractmethod
7175
async def on_connection_error(self, rsocket, exception: Exception):
72-
...
76+
"""
77+
Handle connection error
78+
"""
7379

7480
@abstractmethod
7581
async def on_close(self, rsocket, exception: Optional[Exception] = None):
76-
...
82+
"""
83+
Handle connection closed
84+
"""
7785

7886
# noinspection PyMethodMayBeStatic
7987
def _parse_composite_metadata(self, metadata: bytes) -> CompositeMetadata:

0 commit comments

Comments
 (0)