Type Alias WsApiResponseHandler<RequestCommandsT, ResponseCommandsT, CommandNameT, QueryT>

WsApiResponseHandler: (
    args: {
        input: ResponseCommandsT[CommandNameT]["valueType"];
        output: WsApiRequestors<RequestCommandsT>;
        query: QueryT;
        ws: WebSocket;
    },
) => Promise<void>

Type Parameters

  • RequestCommandsT extends AnyCommands
  • ResponseCommandsT extends AnyCommands
  • CommandNameT extends keyof ResponseCommandsT & string
  • QueryT extends AnyQuery

Type declaration