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

@ -82,6 +82,7 @@ without arguments starts a full interactive Python console.
Default `EvMenu.msg` sends with OOB type="menu" for use with OOB and webclient pane-redirects.
- New EvMenu templating system for quickly building simpler EvMenus without as much code.
- Add `Command.client_height()` method to match existing `.client_width` (stricako)
- Include more Web-client info in `session.protocol_flags`.
## Evennia 0.9 (2018-2019)

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