Socket.io treats /
as its default namespace, and should treat empty string provided
as namespace just the same.
That used to be the case earlier (seen before 1.x), but does not work as such anymore
as shown in the included test (socket-io-namespace-bug.js
)
Twitter conversation with @SocketIO
npm install -g mocha
npm install socket.io socket.io-client
mocha socket-io-namespace-bug.js
Socket.io
✓ should take / as the default namespace
1) should treat empty string namespace as the default / namespace
1 passing (2s)
1 failing
1) Socket.io should treat empty string namespace as the default / namespace:
Error: timeout of 2000ms exceeded
at null.<anonymous> (/home/ubuntu/.nvm/v0.10.28/lib/node_modules/mocha/lib/runnable.js:157:19)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)