mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-12 15:24:33 -05:00
Update dependency io.javalin:javalin to v6 (#1152)
* Update dependency io.javalin:javalin to v6 * Simple compile fixes * Simple compile fixes pass 2 * Add results to futures * Setup jetty server and api routes * Setup Cors * Setup basic auth * Documentation stubs * Replace chapter mutex cache * Fix compile * Disable Jetty Logging --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
@@ -41,7 +41,7 @@ object UpdaterSocket : Websocket<UpdateStatus>() {
|
||||
}
|
||||
|
||||
override fun addClient(ctx: WsContext) {
|
||||
logger.info { ctx.sessionId }
|
||||
logger.info { ctx.sessionId() }
|
||||
super.addClient(ctx)
|
||||
if (job?.isActive != true) {
|
||||
job = start()
|
||||
|
||||
@@ -8,12 +8,12 @@ abstract class Websocket<T> {
|
||||
protected val clients = ConcurrentHashMap<String, WsContext>()
|
||||
|
||||
open fun addClient(ctx: WsContext) {
|
||||
clients[ctx.sessionId] = ctx
|
||||
clients[ctx.sessionId()] = ctx
|
||||
notifyClient(ctx, null)
|
||||
}
|
||||
|
||||
open fun removeClient(ctx: WsContext) {
|
||||
clients.remove(ctx.sessionId)
|
||||
clients.remove(ctx.sessionId())
|
||||
}
|
||||
|
||||
open fun notifyAllClients(value: T) {
|
||||
|
||||
Reference in New Issue
Block a user