You want to:
Current behaviour
const adminSocket = io('/admin', { forceNew: true }); will connect to Namespace "/" AND "/admin".
Using this will connect to default namespace two times:
const socket = io();
const adminSocket = io('/admin', { forceNew: true });
Im not sure if this is by design but if yes, it did not found it in the documentation.
Expected behaviour
Connecting to a namespace should not connect to default namespace
Setup