This commit is contained in:
parent
b4e92c0004
commit
621731828e
|
|
@ -290,7 +290,9 @@ const Meeting: React.FC = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (e.key === 'isRemotJoin') {
|
} else if (e.key === 'isRemotJoin') {
|
||||||
getRoomUser()
|
setTimeout(() => {
|
||||||
|
getRoomUser()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@ export const startSignalr = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const onSignalr = (callBack: Function) => {
|
export const onSignalr = (callBack: Function) => {
|
||||||
connection.on("GetUserId", (message: any) => {
|
connection.on("sendChannelMsg", (message: any) => {
|
||||||
|
console.log(message);
|
||||||
callBack(message)
|
callBack(message)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -27,7 +28,7 @@ export const onInvoke = (str: string, data: any) => {
|
||||||
case 'levelChannel':
|
case 'levelChannel':
|
||||||
connection.invoke(str, data.roomNum)
|
connection.invoke(str, data.roomNum)
|
||||||
break;
|
break;
|
||||||
case 'senChannelMsg':
|
case 'sendChannelMsg':
|
||||||
connection.invoke(str, data.roomNum, data.msg)
|
connection.invoke(str, data.roomNum, data.msg)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue