Preparing search index...
The search index is not available
@matrixai/ws
@matrixai/ws
types
StreamCodeToReason
Type alias StreamCodeToReason
Stream
Code
To
Reason
:
(
(
type
:
"read"
|
"write"
, code
:
number
)
=>
any
)
Type declaration
(
type
:
"read"
|
"write"
, code
:
number
)
:
any
Maps code to a reason. 0 usually indicates unknown/default reason.
Parameters
type:
"read"
|
"write"
code:
number
Returns
any
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@matrixai/ws
config
errors
events
message
types
utils
Address
Callback
Connection
Error
Connection
Id
Connection
Metadata
Host
Hostname
Opaque
Port
Promise
Deconstructed
Resolve
Hostname
Stream
Code
To
Reason
Stream
Reason
To
Code
TLSVerify
Callback
Web
Socket
Client
Config
Input
Web
Socket
Config
Web
Socket
Server
Config
Input
Web
Socket
Server
Config
Input
With
Injected
Server
Generated using
TypeDoc
Maps code to a reason. 0 usually indicates unknown/default reason.