MCPcopy Create free account
hub / github.com/gotify/server / constructor

Method constructor

ui/src/message/WebSocketStore.ts:11–14  ·  view source on GitHub ↗
(
        private readonly snack: SnackReporter,
        private readonly currentUser: CurrentUser
    )

Source from the content-addressed store, hash-verified

9 private ws: WebSocket | null = null;
10
11 public constructor(
12 private readonly snack: SnackReporter,
13 private readonly currentUser: CurrentUser
14 ) {}
15
16 public listen = (callback: (msg: IMessage) => void) => {
17 if (!this.currentUser.token() || this.wsActive) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected