MCPcopy
hub / github.com/directus/directus / send

Method send

api/src/websocket/collab/room.ts:667–670  ·  view source on GitHub ↗
(client: ClientID, message: BaseServerMessage)

Source from the content-addressed store, hash-verified

665 }
666
667 send(client: ClientID, message: BaseServerMessage) {
668 // Route via Messenger for multi-instance scaling
669 this.messenger.sendClient(client, { ...message, type: WS_TYPE.COLLAB, room: this.uid });
670 }
671
672 /**
673 * Close the room and clean up shared state

Callers 15

constructorMethod · 0.95
joinMethod · 0.95
updateMethod · 0.95
unsetMethod · 0.95
discardMethod · 0.95
focusMethod · 0.95
sendAllMethod · 0.95
sendExcludingMethod · 0.95
PrepareRequestFunction · 0.45
redact.test.tsFile · 0.45
ldap.test.tsFile · 0.45
login.test.tsFile · 0.45

Calls 1

sendClientMethod · 0.80

Tested by 2

setupWSFunction · 0.36
connectFunction · 0.36