toggle menu
lavalink-client
8e47675b00207739f611db426af476bb7e2bb22f-SNAPSHOT
jvm
switch theme
search in API
lavalink-client
/
dev.arbjerg.lavalink.internal
/
LavalinkSocket
Lavalink
Socket
class
LavalinkSocket
(
node
:
LavalinkNode
)
:
WebSocketListener
,
Closeable
Members
Constructors
Lavalink
Socket
Link copied to clipboard
constructor
(
node
:
LavalinkNode
)
Properties
last
Reconnect
Attempt
Link copied to clipboard
var
lastReconnectAttempt
:
Long
may
Reconnect
Link copied to clipboard
var
mayReconnect
:
Boolean
open
Link copied to clipboard
var
open
:
Boolean
reconnect
Interval
Link copied to clipboard
val
reconnectInterval
:
Int
Functions
attempt
Reconnect
Link copied to clipboard
fun
attemptReconnect
(
)
close
Link copied to clipboard
open
override
fun
close
(
)
on
Closed
Link copied to clipboard
open
override
fun
onClosed
(
webSocket
:
WebSocket
,
code
:
Int
,
reason
:
String
)
on
Closing
Link copied to clipboard
open
override
fun
onClosing
(
webSocket
:
WebSocket
,
code
:
Int
,
reason
:
String
)
on
Failure
Link copied to clipboard
open
override
fun
onFailure
(
webSocket
:
WebSocket
,
t
:
Throwable
,
response
:
Response
?
)
on
Message
Link copied to clipboard
open
override
fun
onMessage
(
webSocket
:
WebSocket
,
text
:
String
)
open
fun
onMessage
(
webSocket
:
WebSocket
,
bytes
:
ByteString
)
on
Open
Link copied to clipboard
open
override
fun
onOpen
(
webSocket
:
WebSocket
,
response
:
Response
)