This commit is contained in:
yj 2024-08-14 12:10:19 +08:00
parent 987efc4355
commit 5bdb6500eb
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ export const onInvoke = async (str: string, data: any) => {
} }
export const onStop = async () => { export const onStop = async () => {
if (connection) { if (connection) {
connection.off('Invitation');
connection.off('ForceLogout');
connection.stop() connection.stop()
connection = "" connection = ""
} }