pull/32/head
parent
b2401f60e0
commit
00e5da3683
@ -0,0 +1,13 @@ |
||||
package io.legado.app.web |
||||
|
||||
import fi.iki.elonen.NanoWSD |
||||
import io.legado.app.web.controller.SourceDebugWebSocket |
||||
|
||||
class WebSocketServer(port: Int) : NanoWSD(port) { |
||||
|
||||
override fun openWebSocket(handshake: IHTTPSession): WebSocket? { |
||||
return if (handshake.uri == "/sourceDebug") { |
||||
SourceDebugWebSocket(handshake) |
||||
} else null |
||||
} |
||||
} |
Loading…
Reference in new issue