#How to get closed event from LavalinkSocket

1 messages · Page 1 of 1 (latest)

late stag
#

Someone know if i can somehow follow event when server will go down? Like here you can see i got log that server closed with reason 1001, but in my code how to manage to listen for this event? It's somehow in easy way possible or i need create all logic from 0? Or if server will go down with any reason to catch this.

pallid turret
#

not quite sure what you mean
you also applied the lavaplayer tag for a qestion about lavalink?

#

do you mean you want an event when the connection to your lavalink server is closed?

late stag
#

I mean i wanna in my app do some stuff when lavalinkserver will get down (so connection will be closed) but idk how to catch this event. It's not simple like catching TrackEndEvent.class

pallid turret
#

then you should consult your websoket client docs

#

since as you can imagine

#

if the server is gone, it's gone

late stag
#

So from dev.arbjerg.lavalink.client i can't do it in easy way? I need manually config my websocket

pallid turret
#

i recommend you ask in #java_lavalink-client