First stage (before client connect) works again

Second stage (after client connect) can't be tested right now because there is not WebSocket client yet.
This commit is contained in:
Philip Trauner 2016-09-11 21:38:13 +02:00
parent ad37319f1f
commit 522dbc4e8a

View file

@ -3,8 +3,6 @@ import Routing
import Config
import DataTypes
from Sync import SyncServer
#from .AsyncServer import Server
from .Broadcast import Broadcast
@ -180,7 +178,7 @@ class Handler(WebSocket):
INVALID_ROUTE = 1
INVALID_METADATA_LAYOUT = 2
INVALID_DATA_TYPE
INVALID_DATA_TYPE = 3
class Channels:
EDITOR = 1
@ -251,7 +249,6 @@ class Handler(WebSocket):
if len(data_repr) > 80:
data_repr = data_repr[:80] + "..."
Logging.info("Received %d-long '%s' on route '%s': %s (%s:%d)" % (len(data), type(data).__name__, route, data_repr, self.address, self.port))
# Route needs to be reintroduced
self.routes[route].run(data, self)