Skip to content

Commit 9c68f99

Browse files
committed
Add disconnect method to agent session
1 parent a76a096 commit 9c68f99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fishjam/agent/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ async def add_track(self, options: OutgoingAudioTrackOptions):
151151
async def _send(self, message: AgentRequest):
152152
await self._ws.send(bytes(message), text=False)
153153

154+
async def disconnect(self):
155+
await self._ws.close()
156+
154157

155158
class Agent:
156159
"""

0 commit comments

Comments
 (0)