handle candidate message (#6662)

This commit is contained in:
Christopher Poile 2022-10-03 13:10:23 -04:00 committed by GitHub
parent d31676f6b7
commit ccdde858c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
});