This commit is contained in:
parent
5d79891e7d
commit
403a90f016
|
|
@ -166,7 +166,6 @@ const Meeting: React.FC = () => {
|
|||
getRoomUser()
|
||||
break;
|
||||
}
|
||||
|
||||
})
|
||||
}, [])
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ export const startSignalr = () => {
|
|||
}
|
||||
|
||||
export const onSignalr = (callBack: Function) => {
|
||||
if (connection){
|
||||
connection.on("ReceiveMessage", (uid: string, userName: string, message: string) => {
|
||||
callBack({
|
||||
key:'ReceiveMessage',
|
||||
|
|
@ -28,7 +29,7 @@ export const onSignalr = (callBack: Function) => {
|
|||
key: 'ReceiveMessage'
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
export const onInvoke = async (str: string, data: any) => {
|
||||
switch (str) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue