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
ConnectOptions.namespace is public and accepted by TypeScript, but connect(url, options) always derives the namespace from the URL pathname and ignores this property. A compiling call can therefore connect to / while its author requested /game. The ignored property should be removed from the public contract; direct-connection fixtures can use an internal-only option type.
Reproduction
import{connect}from'smocket';connect('http://localhost:3000',{namespace: '/game'});// The client connects to `/`, not `/game`.
Activity