fix eslint warnings

This commit is contained in:
Proddy
2023-04-29 15:35:54 +02:00
parent 90a719561b
commit 2254bf9c16
10 changed files with 31 additions and 26 deletions

View File

@@ -83,6 +83,7 @@ export const useWs = <D>(wsUrl: string, wsThrottle = 100) => {
}
});
ws.current = instance;
// eslint-disable-next-line @typescript-eslint/unbound-method
return instance.close;
}, [wsUrl, onMessage]);