Started refactor the webclient to use new system server-side. Renamed webclient.py to webclient_ajax.py and websocket_client.py to simpy webclient.py, since websocket is the standard now.

This commit is contained in:
Griatch 2016-02-03 17:35:12 +01:00
parent 2d826df2f4
commit 7ad1229a7b
6 changed files with 473 additions and 462 deletions

View file

@ -294,9 +294,13 @@ class PortalSessionHandler(SessionHandler):
Args:
message (str): Message to relay.
Notes:
This will create an on-the fly text-type
send command.
"""
for session in self.values():
session.data_out(text=message)
session.data_out(text=(message,))
def data_in(self, session, **kwargs):
"""