seyfert 3.1.3-dev-14983655996.0 → 3.1.3-dev-15068780757.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,15 +25,15 @@ class BaseSocket {
25
25
  return new Promise(res => {
26
26
  const nonce = (0, node_crypto_1.randomUUID)();
27
27
  const start = performance.now();
28
- const listener = (data) => {
28
+ const listener = ({ data }) => {
29
29
  if (data.toString() !== nonce)
30
30
  return;
31
31
  //@ts-expect-error
32
- ws.removeListener('pong', listener);
32
+ ws.removeEventListener('pong', listener);
33
33
  res(performance.now() - start);
34
34
  };
35
35
  //@ts-expect-error
36
- ws.on('pong', listener);
36
+ ws.addEventListener('pong', listener);
37
37
  //@ts-expect-error
38
38
  ws.ping(nonce);
39
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.1.3-dev-14983655996.0",
3
+ "version": "3.1.3-dev-15068780757.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",