Commit ae5a90b6 authored by ibuler's avatar ibuler

[Update] 用户exit后,发送给前端

parent 01285f53
......@@ -252,6 +252,7 @@ class WSProxy:
except OSError:
continue
if len(data) == 0:
self.ws.emit("logout", {"room": self.room_id}, room=self.room_id)
self.close()
data = data.decode(errors="ignore")
self.ws.emit("data", {'data': data, 'room': self.room_id},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment