diff options
Diffstat (limited to 'module/remote/WebSocketBackend.py')
-rw-r--r-- | module/remote/WebSocketBackend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/remote/WebSocketBackend.py b/module/remote/WebSocketBackend.py index 6e01dad87..2d22664c6 100644 --- a/module/remote/WebSocketBackend.py +++ b/module/remote/WebSocketBackend.py @@ -33,14 +33,14 @@ class WebSocketBackend(BackendBase): from wsbackend.Server import WebSocketServer, DefaultOptions from wsbackend.Dispatcher import Dispatcher from wsbackend.ApiHandler import ApiHandler - from wsbackend.EventHandler import EventHandler + from wsbackend.AsyncHandler import AsyncHandler options = DefaultOptions() options.server_host = host options.port = port options.dispatcher = Dispatcher() - options.dispatcher.addHandler('/api', ApiHandler(self.core.api)) - options.dispatcher.addHandler('/events', EventHandler(self.core.api)) + options.dispatcher.addHandler(ApiHandler.PATH, ApiHandler(self.core.api)) + options.dispatcher.addHandler(AsyncHandler.PATH, AsyncHandler(self.core.api)) self.server = WebSocketServer(options) |