Search
Preparing search index...
The search index is not available
lavaclient
Options
All
Public
Public/Protected
All
Inherited
Menu
lavaclient
lib/node/Connection
Connection
Class Connection
Modules
index
lib/
Player
lib/
Utils
lib/cluster/
Cluster
lib/cluster/
Cluster
Node
lib/node/
Connection
lib/node/
Node
lib/node/
Node
State
lib/node/REST
Connection
constructor
[_
socket]
connected
At
info
node
payload
Queue
reconnect
Try
CLIENT_
NAME
active
can
Reconnect
uptime
_onclose
_onerror
_onmessage
_onopen
_send
configure
Resuming
connect
disconnect
flush
Queue
reconnect
send
Connection
Info
Outgoing
Payload
Reconnect
Options
Resuming
Options
Reconnect
Delay
Hierarchy
Connection
Index
Constructors
constructor
Properties
[_
socket]
connected
At
info
node
payload
Queue
reconnect
Try
CLIENT_
NAME
Accessors
active
can
Reconnect
uptime
Methods
_onclose
_onerror
_onmessage
_onopen
_send
configure
Resuming
connect
disconnect
flush
Queue
reconnect
send
Constructors
constructor
new
Connection
(
node
:
Node
, info
:
ConnectionInfo
)
:
Connection
Parameters
node:
Node
info:
ConnectionInfo
Returns
Connection
Properties
Private
Optional
[_
socket]
[_
socket]
:
WebSocket
Optional
connected
At
connected
At
:
number
Readonly
info
info
:
ConnectionInfo
Readonly
node
node
:
Node
payload
Queue
payload
Queue
:
OutgoingPayload
[]
= []
reconnect
Try
reconnect
Try
:
number
= 0
Static
CLIENT_
NAME
CLIENT_
NAME
:
string
= "lavaclient"
Accessors
active
get
active
(
)
:
boolean
Returns
boolean
can
Reconnect
get
canReconnect
(
)
:
boolean
Returns
boolean
uptime
get
uptime
(
)
:
number
Returns
number
Methods
Private
_onclose
_onclose
(
__namedParameters
:
CloseEvent
)
:
Promise
<
void
>
Parameters
__namedParameters:
CloseEvent
Returns
Promise
<
void
>
Private
_onerror
_onerror
(
event
:
ErrorEvent
)
:
void
Parameters
event:
ErrorEvent
Returns
void
Private
_onmessage
_onmessage
(
__namedParameters
:
MessageEvent
)
:
void
Parameters
__namedParameters:
MessageEvent
Returns
void
Private
_onopen
_onopen
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
_send
_send
(
__namedParameters
:
OutgoingPayload
)
:
void
Parameters
__namedParameters:
OutgoingPayload
Returns
void
configure
Resuming
configure
Resuming
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
)
:
void
Returns
void
disconnect
disconnect
(
code
?:
number
, reason
?:
string
)
:
void
Parameters
code:
number
= 1000
reason:
string
= "closing"
Returns
void
flush
Queue
flush
Queue
(
)
:
void
Returns
void
reconnect
reconnect
(
)
:
boolean
Returns
boolean
send
send
(
important
:
boolean
, data
:
OutgoingMessage
)
:
Promise
<
void
>
Parameters
important:
boolean
data:
OutgoingMessage
Returns
Promise
<
void
>
Generated using
TypeDoc