This commit is contained in:
Horis
2023-04-16 14:51:15 +08:00
parent 154b913f73
commit 9b3f36996b
2 changed files with 5 additions and 1 deletions
@@ -65,6 +65,10 @@ class BookSourceDebugWebSocket(handshakeRequest: NanoHTTPD.IHTTPSession) :
Debug.callback = this@BookSourceDebugWebSocket
Debug.startDebug(this, it, key)
}
} else {
send("数据必须为Json格式")
close(NanoWSD.WebSocketFrame.CloseCode.NormalClosure, "调试结束", false)
return@launch
}
}
}