MCPcopy
hub / github.com/dyrector-io/dyrectorio / WsSubscription

Interface WsSubscription

web/crux/src/websockets/common.ts:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51export interface WsSubscription {
52 getCompleter(clientToken: string): Observable<unknown>
53 getParameter(name: string): string
54 onMessage(client: WsClient, message: WsMessage): Observable<any>
55 sendToAll(message: WsMessage): void
56 sendToAllExcept(except: WsClient, message: WsMessage): void
57}
58
59export type WsSendClientMessage = (message: WsMessage) => void
60export type WsClient = WebSocket & {

Callers 23

onSubscribeMethod · 0.65
onSubscribeMethod · 0.65
onSubscribeMethod · 0.65
namespace.spec.tsFile · 0.65
teamSlugFromWsContextFunction · 0.65
namespace.spec.tsFile · 0.65
onClientMessageMethod · 0.65
onMessageMethod · 0.65
onMessageMethod · 0.65
namespace.spec.tsFile · 0.65
onSubscribeMethod · 0.65

Implementers 1

WsNamespaceweb/crux/src/websockets/namespace.ts

Calls

no outgoing calls

Tested by

no test coverage detected