MCPcopy Index your code
hub / github.com/tiann/hapi / ServerToClientEvents

Interface ServerToClientEvents

shared/src/socket.ts:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192export interface ServerToClientEvents {
193 update: (data: Update, ack?: (response: CancelQueuedMessageAck) => void) => void
194 'rpc-request': (data: { method: string; params: string }, callback: (response: string) => void) => void
195 'terminal:open': (data: TerminalOpenPayload) => void
196 'terminal:write': (data: TerminalWritePayload) => void
197 'terminal:resize': (data: TerminalResizePayload) => void
198 'terminal:close': (data: TerminalClosePayload) => void
199 error: (data: { message: string; code?: SocketErrorReason; scope?: 'session' | 'machine'; id?: string }) => void
200}
201
202export interface ClientToServerEvents {
203 message: (data: { sid: string; message: unknown; localId?: string }) => void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected