mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
server: implement FINAL_SUMMARY for websocket + update tests and fix flush
This commit is contained in:
@@ -72,7 +72,7 @@ class StreamClient:
|
||||
async def on_connectionstatechange():
|
||||
self.logger.info(f"Connection state is {pc.connectionState}")
|
||||
if pc.connectionState == "failed":
|
||||
await pc.close()
|
||||
await self.stop()
|
||||
self.pcs.discard(pc)
|
||||
|
||||
@pc.on("track")
|
||||
@@ -87,7 +87,7 @@ class StreamClient:
|
||||
self.pc.addTrack(audio)
|
||||
self.track_audio = audio
|
||||
|
||||
channel = pc.createDataChannel("data-channel")
|
||||
self.channel = channel = pc.createDataChannel("data-channel")
|
||||
self.logger = self.logger.bind(channel=channel.label)
|
||||
self.logger.info("Created by local party")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user