diff --git a/README.md b/README.md index 9f7d9c5..d87e4c4 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,10 @@ io.use( }) ) -io.on('connection', async () => { +io.on('connection', async (socket) => { + // jwt payload of the connected client + console.log(socket.decodedToken) + const clients = await io.sockets.allSockets() for (const clientId of clients) { const client = io.sockets.sockets.get(clientId)