MCPcopy
hub / github.com/directus/directus / on

Method on

api/src/services/websocket.ts:28–30  ·  view source on GitHub ↗
(event: 'connect' | 'message' | 'error' | 'close', callback: ActionHandler)

Source from the content-addressed store, hash-verified

26 }
27
28 on(event: 'connect' | 'message' | 'error' | 'close', callback: ActionHandler) {
29 emitter.onAction('websocket.' + event, callback);
30 }
31
32 off(event: 'connect' | 'message' | 'error' | 'close', callback: ActionHandler) {
33 emitter.offAction('websocket.' + event, callback);

Callers 15

watchExtensionFunction · 0.80
writeChunkMethod · 0.80
constructorMethod · 0.80
uploadPartsMethod · 0.80
columnInfoMethod · 0.80
index.tsFile · 0.80
writeChunkMethod · 0.80
auth.tsFile · 0.80
createCalendarFunction · 0.80
useInlineCodeFunction · 0.80
useMediaFunction · 0.80

Calls 1

onActionMethod · 0.80

Tested by 4

spawnAutoCannonFunction · 0.64
requestRouterFunction · 0.64
createServerFunction · 0.64
startAppFunction · 0.64