Commit 8bf6999
[FIX] prevent potential race condition during websocket init
Before this commit, the connection of the rtc session on the server,
which was dependent on the speed of asynchronous mediasoup calls
(`router.createWebRtcTransport`) could race the initialization of the
websocket on the client.
This commit fixes this issue by signaling to the client when the
websocket is authenticated as soon as possible, before starting
the RTC connection process.1 parent f8263ab commit 8bf6999
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments