handle candidate message (#6662)
This commit is contained in:
parent
d31676f6b7
commit
ccdde858c7
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ export async function newClient(channelID: string, iceServers: ICEServersConfigs
|
|||
|
||||
ws.on('message', ({data}) => {
|
||||
const msg = JSON.parse(data);
|
||||
if (msg.type === 'answer' || msg.type === 'offer') {
|
||||
if (msg.type === 'answer' || msg.type === 'candidate' || msg.type === 'offer') {
|
||||
peer?.signal(data);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue