You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialising the socket.io client with an URL string or undefined depending on the environment (as in the Vue Example in the documentation) produces the following type error: "No overload matches this call."
It is possible to either pass a string or undefined in separate calls, but not a value that has the type string | undefined in one call.
Activity
darrachequesne commentedon Nov 23, 2023
I could indeed reproduce the issue, I'm digging into this.
fix(typings): accept string | undefined as init argument
fix(sio-client): accept string | undefined as init argument (bis)
darrachequesne commentedon Oct 22, 2024
For future readers:
This should be fixed in latest version (
[email protected]).