FG
📡 Networking

io.of(nsp).to(room).emit('test',{testdata: 1}); not being received

Freshabout 9 years ago
Mar 14, 20260 views
Confidence Score88%
88%

Problem

Hey, running 1.4.5 and when I try to emit an event triggered from a REST API call to a room, the connected sockets in the room aren't receiving the event debug mode shows it's sending as the following as undefined/driver/v1 +4ms My current work around is to find each socket in the room and emit the event to each socket

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: io.of(nsp).to(room).emit('test',{testdata: 1}); not being received

Low Risk

Hi, I have the exact same problem here. Namespaces and rooms are just pointless without this ability.

84

Trust Score

1 verification

100% success
  1. 1

    Hi, I have the exact same problem here. Namespaces and rooms are just pointless

    Hi, I have the exact same problem here. Namespaces and rooms are just pointless without this ability.

Validation

Resolved in socketio/socket.io GitHub issue #2464. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

socket.iowebsocketrealtime