mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
fix disconnect of js once event
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -135,7 +135,7 @@ async function connectAndPublish(
|
|||||||
const tracker = PosthogAnalytics.instance.eventCallConnectDuration;
|
const tracker = PosthogAnalytics.instance.eventCallConnectDuration;
|
||||||
// Track call connect duration
|
// Track call connect duration
|
||||||
tracker.cacheConnectStart();
|
tracker.cacheConnectStart();
|
||||||
livekitRoom.once(RoomEvent.SignalConnected, () => tracker.cacheWsConnect());
|
livekitRoom.once(RoomEvent.SignalConnected, tracker.cacheWsConnect);
|
||||||
|
|
||||||
await livekitRoom!.connect(sfuConfig!.url, sfuConfig!.jwt, {
|
await livekitRoom!.connect(sfuConfig!.url, sfuConfig!.jwt, {
|
||||||
// Due to stability issues on Firefox we are testing the effect of different
|
// Due to stability issues on Firefox we are testing the effect of different
|
||||||
|
|||||||
Reference in New Issue
Block a user