mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Converted webclient to use websockets on port 8001. Ideally one would make it so the ajax and websocket clients work under the same django wrapper, but for now this functionality is elusive.
This commit is contained in:
parent
2a6cfaca7d
commit
ede6634081
11 changed files with 326 additions and 37 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#
|
||||
# This file defines global variables that will always be
|
||||
# This file defines global variables that will always be
|
||||
# available in a view context without having to repeatedly
|
||||
# include it. For this to work, this file is included in
|
||||
# the settings file, in the TEMPLATE_CONTEXT_PROCESSORS
|
||||
# tuple.
|
||||
# include it. For this to work, this file is included in
|
||||
# the settings file, in the TEMPLATE_CONTEXT_PROCESSORS
|
||||
# tuple.
|
||||
#
|
||||
|
||||
from django.db import models
|
||||
|
|
@ -19,8 +19,8 @@ except AttributeError:
|
|||
SERVER_VERSION = get_evennia_version()
|
||||
|
||||
|
||||
# Setup lists of the most relevant apps so
|
||||
# the adminsite becomes more readable.
|
||||
# Setup lists of the most relevant apps so
|
||||
# the adminsite becomes more readable.
|
||||
|
||||
PLAYER_RELATED = ['Players']
|
||||
GAME_ENTITIES = ['Objects', 'Scripts', 'Comms', 'Help']
|
||||
|
|
@ -44,5 +44,6 @@ def general_context(request):
|
|||
'evennia_setupapps': GAME_SETUP,
|
||||
'evennia_connectapps': CONNECTIONS,
|
||||
'evennia_websiteapps':WEBSITE,
|
||||
"webclient_enabled" : settings.WEBCLIENT_ENABLED
|
||||
"webclient_enabled" : settings.WEBCLIENT_ENABLED,
|
||||
"websocket_enabled" : settings.WEBSOCKET_ENABLED
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue