mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 13:04:23 +02:00
messages broken
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
}
|
||||
|
||||
this.connection.addEventListener('open', function (event) {
|
||||
this.connection.send('handshake')
|
||||
this.connection.send('')
|
||||
})
|
||||
var showNotif = this.showNotif
|
||||
|
||||
|
@@ -59,8 +59,6 @@ async def ws_panel(copilot_id):
|
||||
global socket_relay
|
||||
while True:
|
||||
data = await websocket.receive()
|
||||
if data == "handshake":
|
||||
await websocket.send(f"willkommen")
|
||||
socket_relay[copilot_id] = shortuuid.uuid()[:5] + "-" + data + "-" + "none"
|
||||
|
||||
|
||||
|
@@ -101,6 +101,6 @@ async def api_copilot_ws_relay(copilot_id, comment, data):
|
||||
if not copilot:
|
||||
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
||||
await updater(data, comment, copilot_id)
|
||||
print("updated")
|
||||
print(comment)
|
||||
return "", HTTPStatus.OK
|
||||
|
||||
|
Reference in New Issue
Block a user