We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76a096 commit 608683bCopy full SHA for 608683b
1 file changed
fishjam/agent/agent.py
@@ -151,6 +151,13 @@ async def add_track(self, options: OutgoingAudioTrackOptions):
151
async def _send(self, message: AgentRequest):
152
await self._ws.send(bytes(message), text=False)
153
154
+ 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
159
+ await self._ws.close()
160
+
161
162
class Agent:
163
"""
0 commit comments