toggle menu
lavalink-client
c1d532187adc524f4c81b3d1ee860143e3d908fd-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
)