express-yaschema-ws-api-handler
Preparing search index...
WsApiRequestHandler
Type Alias WsApiRequestHandler<RequestCommandsT, ResponseCommandsT, CommandNameT, QueryT, ExtraArgsT>
WsApiRequestHandler
:
(
args
:
{
connectionId
:
string
;
express
:
{
next
:
NextFunction
;
req
:
Request
;
ws
:
WebSocket
}
;
extras
:
ExtraArgsT
;
input
:
RequestCommandsT
[
CommandNameT
]
[
"valueType"
]
;
output
:
WsApiResponders
<
ResponseCommandsT
>
;
query
:
QueryT
;
}
,
)
=>
Promise
<
void
>
Type Parameters
RequestCommandsT
extends
AnyCommands
ResponseCommandsT
extends
AnyCommands
CommandNameT
extends
keyof
RequestCommandsT
&
string
QueryT
extends
AnyQuery
ExtraArgsT
extends
Record
<
string
,
any
>
=
Record
<
string
,
never
>
Type declaration
(
args
:
{
connectionId
:
string
;
express
:
{
next
:
NextFunction
;
req
:
Request
;
ws
:
WebSocket
}
;
extras
:
ExtraArgsT
;
input
:
RequestCommandsT
[
CommandNameT
]
[
"valueType"
]
;
output
:
WsApiResponders
<
ResponseCommandsT
>
;
query
:
QueryT
;
}
,
)
:
Promise
<
void
>
Parameters
args
:
{
connectionId
:
string
;
express
:
{
next
:
NextFunction
;
req
:
Request
;
ws
:
WebSocket
}
;
extras
:
ExtraArgsT
;
input
:
RequestCommandsT
[
CommandNameT
]
[
"valueType"
]
;
output
:
WsApiResponders
<
ResponseCommandsT
>
;
query
:
QueryT
;
}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
express-yaschema-ws-api-handler
Loading...