Trakteer.js
Docs
API
GitHub
Preparing search index...
<internal>
WebSocket
ServerOptions
Interface ServerOptions<U, V>
interface
ServerOptions
<
U
extends
typeof
WebSocket
=
typeof
WebSocket
,
V
extends
typeof
IncomingMessage
=
typeof
IncomingMessage
,
>
{
host
?:
string
;
port
?:
number
;
backlog
?:
number
;
server
?:
|
Server
<
V
,
typeof
ServerResponse
>
|
Server
<
V
,
typeof
ServerResponse
>
;
verifyClient
?:
|
VerifyClientCallbackAsync
<
InstanceType
<
V
>
>
|
VerifyClientCallbackSync
<
InstanceType
<
V
>
>
;
handleProtocols
?:
(
protocols
:
Set
<
string
>
,
request
:
InstanceType
<
V
>
,
)
=>
string
|
false
;
path
?:
string
;
noServer
?:
boolean
;
allowSynchronousEvents
?:
boolean
;
autoPong
?:
boolean
;
clientTracking
?:
boolean
;
perMessageDeflate
?:
boolean
|
PerMessageDeflateOptions
;
maxPayload
?:
number
;
skipUTF8Validation
?:
boolean
;
WebSocket
?:
U
;
}
Type Parameters
U
extends
typeof
WebSocket
=
typeof
WebSocket
V
extends
typeof
IncomingMessage
=
typeof
IncomingMessage
Index
Properties
host?
port?
backlog?
server?
verify
Client?
handle
Protocols?
path?
no
Server?
allow
Synchronous
Events?
auto
Pong?
client
Tracking?
per
Message
Deflate?
max
Payload?
skip
UTF8
Validation?
Web
Socket?
Properties
Optional
host
host
?:
string
Optional
port
port
?:
number
Optional
backlog
backlog
?:
number
Optional
server
server
?:
Server
<
V
,
typeof
ServerResponse
>
|
Server
<
V
,
typeof
ServerResponse
>
Optional
verify
Client
verifyClient
?:
|
VerifyClientCallbackAsync
<
InstanceType
<
V
>
>
|
VerifyClientCallbackSync
<
InstanceType
<
V
>
>
Optional
handle
Protocols
handleProtocols
?:
(
protocols
:
Set
<
string
>
,
request
:
InstanceType
<
V
>
,
)
=>
string
|
false
Optional
path
path
?:
string
Optional
no
Server
noServer
?:
boolean
Optional
allow
Synchronous
Events
allowSynchronousEvents
?:
boolean
Optional
auto
Pong
autoPong
?:
boolean
Optional
client
Tracking
clientTracking
?:
boolean
Optional
per
Message
Deflate
perMessageDeflate
?:
boolean
|
PerMessageDeflateOptions
Optional
max
Payload
maxPayload
?:
number
Optional
skip
UTF8
Validation
skipUTF8Validation
?:
boolean
Optional
Web
Socket
WebSocket
?:
U
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
host
port
backlog
server
verify
Client
handle
Protocols
path
no
Server
allow
Synchronous
Events
auto
Pong
client
Tracking
per
Message
Deflate
max
Payload
skip
UTF8
Validation
Web
Socket
Docs
API
GitHub
Trakteer.js
Loading...