Preparing search index...
The search index is not available
mockttp
mockttp
webSocketHandlers
RejectWebSocketHandler
Class RejectWebSocketHandler
Hierarchy (
view full
)
RejectWebSocketHandlerDefinition
RejectWebSocketHandler
Index
Constructors
constructor
Properties
body
headers
status
Code
status
Message
type
Methods
dispose
explain
handle
Constructors
constructor
new
Reject
Web
Socket
Handler
(
statusCode
,
statusMessage
?
,
headers
?
,
body
?
)
:
RejectWebSocketHandler
Parameters
statusCode
:
number
statusMessage
:
string
= 'WebSocket rejected'
headers
:
Headers
= {}
body
:
string
|
Buffer
= ''
Returns
RejectWebSocketHandler
Properties
Readonly
body
body
:
string
|
Buffer
= ''
Readonly
headers
headers
:
Headers
= {}
Readonly
status
Code
status
Code
:
number
Readonly
status
Message
status
Message
:
string
= 'WebSocket rejected'
Readonly
type
type
:
"ws-reject"
= 'ws-reject'
Methods
dispose
dispose
(
)
:
void
Returns
void
explain
explain
(
)
:
string
Returns
string
handle
handle
(
req
,
socket
,
head
)
:
Promise
<
void
>
Parameters
req
:
OngoingRequest
socket
:
Socket
head
:
Buffer
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
body
headers
status
Code
status
Message
type
Methods
dispose
explain
handle
mockttp
Loading...