hundreds-vase-7385
01/01/2026, 11:27 AMconst roomService = new RoomServiceClient(livekitUrl, livekitApiKey, livekitApiSecret);
const textId = randomUUID();
const message = {
action: 'add_text',
text_id: textId,
text: 'Good job!',
};
await roomService.sendData(
args.input.roomName,
new TextEncoder().encode(JSON.stringify(message)),
DataPacket_Kind.RELIABLE,
{ topic: 'server-commands' },
);
Since the upgrade, the agent no longer receives this data message, even though the code and topic have not changed.
Has anyone seen a similar issue with these versions or is there a change in how agents consume server-commands data that we might be missing?tall-airline-16756
01/01/2026, 11:27 AMtall-airline-16756
01/01/2026, 11:27 AMroom.on("data_received", ...) or another handler)
2. Do agent logs show it joining the room and subscribing to data? Any errors or warnings after the upgrade?
3. Can you confirm the agent’s participant identity/role didn’t change after upgrading?
4. When you call sendData, do you see any server-side success logs or errors? Any network traces showing the packet left the server?
5. Did you test sending data on other topics (or as DataPacket_Kind.UNRELIABLE) — does that reach the agent?
What I’ll do once you send those:
• Check whether the agent’s data handler is being triggered or if the packet is dropped.
• Suggest targeted code checks or a minimal repro if needed.
• If we identify it as a version-related behavior, I’ll outline a short workaround and next steps.
Send the answers and any relevant logs/snippets and I’ll dig in.
Sources: Server-side | livekit/livekit_composite | DeepWiki | An open source stack for real-time multimodal AI