This commit is contained in:
yumoqing 2024-08-20 18:01:25 +08:00
parent d4af8d48dc
commit fb04d22c7f

View File

@ -195,7 +195,7 @@ bricks.RTCClient = class extends bricks.VBox {
} }
async signaling_message_handle(event){ async signaling_message_handle(event){
var datapkg = JSON.parse(event.data); var datapkg = JSON.parse(event.data);
var d = datapkg.data; var d = JSON.parse(datapkg.data);
console.log('data received from server', datapkg, 'd=', d, event); console.log('data received from server', datapkg, 'd=', d, event);
switch (d.type){ switch (d.type){
case 'onlineList': case 'onlineList':