socket.io-deno
socket.io-deno copied to clipboard
Cannot access private nsp property on sockets
According to the documentation, you should be able
to access the namespace of a socket with socket.nsp
io.of(/^\/dynamic-\d+$/).on("connection", (socket) => {
const namespace = socket.nsp;
});
However, in the Deno implementation of the Socket.IO server, this fails with Property nsp is private and only accessible within class 'Socket'..
This is because it is defined as readonly private in socket.io-deno while in socket.io it is just readonly.