Include webclient info in protocol_flags

This commit is contained in:
Griatch 2020-10-24 10:54:07 +02:00
parent 5c109942d7
commit 9bb0c77a74
2 changed files with 5 additions and 0 deletions

View file

@ -119,6 +119,10 @@ class WebSocketClient(WebSocketServerProtocol, Session):
self.sessid = old_session.sessid
self.sessionhandler.disconnect(old_session)
self.protocol_flags["CLIENTNAME"] = "Evennia Webclient (websocket)"
self.protocol_flags["UTF-8"] = True
self.protocol_flags["OOB"] = True
# watch for dead links
self.transport.setTcpKeepAlive(1)
# actually do the connection