refactor: use constant state & authInfo on legacy

This commit is contained in:
Adhiraj Singh
2021-12-18 19:45:58 +05:30
parent 1e97c7714e
commit 37c07937d7
4 changed files with 18 additions and 18 deletions

View File

@@ -258,9 +258,9 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
return {
...socket,
state,
authInfo,
ev,
getState: () => state,
getAuthInfo: () => authInfo,
waitForConnection,
canLogin,
logout