| 190 | } |
| 191 | |
| 192 | export 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 | |
| 202 | export interface ClientToServerEvents { |
| 203 | message: (data: { sid: string; message: unknown; localId?: string }) => void |
nothing calls this directly
no outgoing calls
no test coverage detected