MCPcopy Create free account
hub / github.com/cameri/nostream / UnsubscribeMessageHandler

Class UnsubscribeMessageHandler

src/handlers/unsubscribe-message-handler.ts:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { WebSocketAdapterEvent } from '../constants/adapter'
5
6export class UnsubscribeMessageHandler implements IMessageHandler {
7 public constructor(private readonly webSocket: IWebSocketAdapter) {}
8
9 public async handleMessage(message: UnsubscribeMessage): Promise<void> {
10 this.webSocket.emit(WebSocketAdapterEvent.Unsubscribe, message[1])
11 }
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected