MCPcopy
hub / github.com/chartbrew/chartbrew / emitToUser

Method emitToUser

server/modules/socketManager.js:297–301  ·  view source on GitHub ↗
(userId, event, data = {})

Source from the content-addressed store, hash-verified

295
296 // Emit to specific user
297 emitToUser(userId, event, data = {}) {
298 if (!this.io) return; // Skip if not initialized
299 const room = `user:${userId}`;
300 this.io.to(room).emit(event, data);
301 }
302
303 // Emit to team
304 emitToTeam(teamId, event, data = {}) {

Callers 1

getOrchestrationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected