-
-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose lavalink sessions for plugins (#1042)
- Loading branch information
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
plugin-api/src/main/java/dev/arbjerg/lavalink/api/ISocketServer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dev.arbjerg.lavalink.api | ||
|
||
/** | ||
* Represents a Lavalink server which handles WebSocket connections. | ||
*/ | ||
interface ISocketServer { | ||
/** | ||
* A map of all active sessions by their session id. | ||
*/ | ||
val sessions: Map<String, ISocketContext> | ||
|
||
/** | ||
* A map of all resumable sessions by their session id. | ||
* A session is resumable if the client configured resuming and has disconnected. | ||
*/ | ||
val resumableSessions: Map<String, ISocketContext> | ||
} |