Skip to content

Commit 4ea7ff1

Browse files
committed
add docstring
1 parent 9c68f99 commit 4ea7ff1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fishjam/agent/agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ async def _send(self, message: AgentRequest):
152152
await self._ws.send(bytes(message), text=False)
153153

154154
async def disconnect(self):
155+
"""
156+
Ends the agent session by closing the websocket connection.
157+
Useful when you don't use the context manager to obtain the session.
158+
"""
155159
await self._ws.close()
156160

157161

0 commit comments

Comments
 (0)