Preparing search index...
The search index is not available
mockttp
mockttp
webSocketHandlerDefinitions
RejectWebSocketHandlerDefinition
Class RejectWebSocketHandlerDefinition
Hierarchy (
view full
)
Serializable
RejectWebSocketHandlerDefinition
RejectWebSocketHandler
Implements
WebSocketHandlerDefinition
Index
Constructors
constructor
Properties
body
headers
status
Code
status
Message
type
Methods
dispose
explain
Constructors
constructor
new
Reject
Web
Socket
Handler
Definition
(
statusCode
,
statusMessage
?
,
headers
?
,
body
?
)
:
RejectWebSocketHandlerDefinition
Parameters
statusCode
:
number
statusMessage
:
string
= 'WebSocket rejected'
headers
:
Headers
= {}
body
:
string
|
Buffer
= ''
Returns
RejectWebSocketHandlerDefinition
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
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
body
headers
status
Code
status
Message
type
Methods
dispose
explain
mockttp
Loading...