Skip to content

Commit 2e62048

Browse files
committed
minor: Debug & WS
1 parent ac40cd1 commit 2e62048

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

LavalinkServer/src/main/java/lavalink/server/io/SocketServer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ class SocketServer(
182182

183183
val context = contextMap[session.attributes["sessionId"]]
184184
?: throw IllegalStateException("No context for session ID ${session.id}. Broken websocket?")
185-
context.eventEmitter.onWebsocketMessageIn(message.payload)
186185
context.wsHandler.handle(json)
186+
log.info("it's been transfered")
187+
187188
}
188189

189190
internal fun onSessionResumeTimeout(context: SocketContext) {

LavalinkServer/src/main/java/lavalink/server/io/WebSocketHandler.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ class WebSocketHandler(
5050
private val disabledFilters = serverConfig.filters.entries.filter { !it.value }.map { it.key }
5151

5252
fun handle(json: JSONObject) {
53-
if (!loggedWsCommandsDeprecationWarning) {
54-
log.warn("Sending websocket commands to Lavalink has been deprecated and will be removed in API version 4. API version 3 will be removed in Lavalink 5. Please use the new REST endpoints instead.")
55-
loggedWsCommandsDeprecationWarning = true
56-
}
5753
val op = json.getString("op")
54+
log.info("hnadling on op until here")
5855
val handler = handlers[op] ?: return log.warn("Unknown op '$op'")
5956
handler(json)
6057
}

0 commit comments

Comments
 (0)