Skip to content

Commit 72fe98e

Browse files
authored
docs: fix allSockets example (#381)
1 parent 5cfdf90 commit 72fe98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const sockets = await io.of('/').adapter.sockets(new Set(['room1', 'room2']));
192192
console.log(sockets); // a Set containing the socket ids in 'room1' or in 'room2'
193193

194194
// this method is also exposed by the Server instance
195-
const sockets = io.in('room3').allSockets();
195+
const sockets = await io.in('room3').allSockets();
196196
console.log(sockets); // a Set containing the socket ids in 'room3'
197197
```
198198

0 commit comments

Comments
 (0)