mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +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);
|
||||
};
|
||||
//@ts-expect-error
|
||||
ws.on('pong', listener);
|
||||
ws.addEventListener('pong', listener);
|
||||
//@ts-expect-error
|
||||
ws.ping(nonce);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user