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