Preparing search index...
The search index is not available
mockttp
mockttp
webSocketHandlers
WebSocketHandler
Interface WebSocketHandler
interface
WebSocketHandler
{
type
:
|
"timeout"
|
"close-connection"
|
"reset-connection"
|
"ws-passthrough"
|
"ws-echo"
|
"ws-listen"
|
"ws-reject"
;
dispose
(
)
:
void
;
explain
(
)
:
string
;
handle
(
request
:
OngoingRequest
&
IncomingMessage
,
socket
:
Socket
,
head
:
Buffer
)
:
Promise
<
void
>
;
}
Hierarchy (
view full
)
WebSocketHandlerDefinition
WebSocketHandler
Index
Properties
type
Methods
dispose
explain
handle
Properties
type
type
:
|
"timeout"
|
"close-connection"
|
"reset-connection"
|
"ws-passthrough"
|
"ws-echo"
|
"ws-listen"
|
"ws-reject"
Methods
dispose
dispose
(
)
:
void
Returns
void
explain
explain
(
)
:
string
Returns
string
handle
handle
(
request
,
socket
,
head
)
:
Promise
<
void
>
Parameters
request
:
OngoingRequest
&
IncomingMessage
socket
:
Socket
head
:
Buffer
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
type
Methods
dispose
explain
handle
mockttp
Loading...