mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: replace ws.on with ws.addEventListener for 'pong' event
This commit is contained in:
parent
fb9c59a51b
commit
089cfab6da
@ -32,7 +32,7 @@ export class BaseSocket {
|
|||||||
res(performance.now() - start);
|
res(performance.now() - start);
|
||||||
};
|
};
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
ws.on('pong', listener);
|
ws.addEventListener('pong', listener);
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
ws.ping(nonce);
|
ws.ping(nonce);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user