Search
Preparing search index...
The search index is not available
SkeldJS
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
dtls
DtlsSocket
Class DtlsSocket
Hierarchy
EventEmitter
DtlsSocket
Index
Methods
_connect
close
connect
emit
flush
Queued
Application
Data
handle
Recv
off
on
once
resend
Packets
IfNeeded
reset
Connection
State
send
send
Client
Hello
send
Client
Key
Exchange
Flight
set
Valid
Server
Certificates
Constructors
constructor
Properties
current
Epoch
epoch
handshake
Resend
Timeout
next
Epoch
queued
Application
Data
server
Certificates
socket
state
Methods
_connect
_connect
(
port
:
number
, ip
:
string
)
:
Promise
<
void
>
Parameters
port:
number
ip:
string
Returns
Promise
<
void
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
port
:
number
, ip
:
string
)
:
Promise
<
void
>
Parameters
port:
number
ip:
string
Returns
Promise
<
void
>
emit
emit
(
event
:
"message"
, data
:
Buffer
)
:
any
emit
(
event
:
"ready"
)
:
any
Parameters
event:
"message"
data:
Buffer
Returns
any
Parameters
event:
"ready"
Returns
any
flush
Queued
Application
Data
flush
Queued
Application
Data
(
)
:
void
Returns
void
handle
Recv
handle
Recv
(
reader
:
HazelReader
)
:
void
Parameters
reader:
HazelReader
Returns
void
off
off
(
event
:
"message"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
off
(
event
:
"ready"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
Parameters
event:
"message"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
Parameters
event:
"ready"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
on
on
(
event
:
"message"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
on
(
event
:
"ready"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
Parameters
event:
"message"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
Parameters
event:
"ready"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
once
once
(
event
:
"message"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
once
(
event
:
"ready"
, listener
:
(
data
:
Buffer
)
=>
any
)
:
any
Parameters
event:
"message"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
Parameters
event:
"ready"
listener:
(
data
:
Buffer
)
=>
any
(
data
:
Buffer
)
:
any
Parameters
data:
Buffer
Returns
any
Returns
any
resend
Packets
IfNeeded
resend
Packets
IfNeeded
(
)
:
void
Returns
void
reset
Connection
State
reset
Connection
State
(
)
:
void
Returns
void
send
send
(
bytes
:
Buffer
, cb
?:
(
err
:
null
|
Error
, bytesWritten
:
number
)
=>
void
)
:
void
Parameters
bytes:
Buffer
Optional
cb:
(
err
:
null
|
Error
, bytesWritten
:
number
)
=>
void
(
err
:
null
|
Error
, bytesWritten
:
number
)
:
void
Parameters
err:
null
|
Error
bytesWritten:
number
Returns
void
Returns
void
send
Client
Hello
send
Client
Hello
(
)
:
void
Returns
void
send
Client
Key
Exchange
Flight
send
Client
Key
Exchange
Flight
(
isRetrasmit
:
boolean
)
:
void
Parameters
isRetrasmit:
boolean
Returns
void
set
Valid
Server
Certificates
set
Valid
Server
Certificates
(
certificates
:
Certificate
[]
)
:
void
Parameters
certificates:
Certificate
[]
Returns
void
Constructors
constructor
new
Dtls
Socket
(
)
:
DtlsSocket
Returns
DtlsSocket
Properties
current
Epoch
current
Epoch
:
CurrentEpoch
epoch
epoch
:
number
handshake
Resend
Timeout
handshake
Resend
Timeout
:
number
= 200
next
Epoch
next
Epoch
:
NextEpoch
queued
Application
Data
queued
Application
Data
:
Buffer
[]
server
Certificates
server
Certificates
:
Certificate
[]
Optional
socket
socket
:
Socket
state
state
:
HandshakeState
Getting
Started
Creating a
Client
Guides
Events
Writing
Custom
Protocol
Messages
Creating
Custom INOs
End
Game
Intents
API
Modules
client
constant
core
data
dtls
eos
events
lan
matchmaking
pathfinding
protocol
reactor
state
text
translations
util
client
constant
core
data
dtls
Aes128
Gcm
Aes
Gcm
Record
Protection
Certificate
Change
Cipher
Spec
Cipher
Suite
Client
Hello
Compression
Method
Content
Type
Current
Epoch
Dtls
Socket
_connect
close
connect
constructor
current
Epoch
emit
epoch
flush
Queued
Application
Data
handle
Recv
handshake
Resend
Timeout
next
Epoch
off
on
once
queued
Application
Data
resend
Packets
IfNeeded
reset
Connection
State
send
send
Client
Hello
send
Client
Key
Exchange
Flight
server
Certificates
set
Valid
Server
Certificates
socket
state
ECCurve
Type
Elliptic
Curves
Extension
Extension
Extension
Type
Fragment
Range
Handshake
Handshake
State
Handshake
Type
Hash
Algorithm
Hello
Verify
Request
Named
Curve
Next
Epoch
Null
Record
Protection
Protocol
Version
Record
Header
Record
Protection
Server
Hello
Signature
Algorithm
X25519
Ecdhe
Rsa
Sha256
expand
Secret
uint24
uint48
x25519
Func
eos
events
lan
matchmaking
pathfinding
protocol
reactor
state
text
translations
util
Generated using
TypeDoc