summaryrefslogtreecommitdiffstats
path: root/module/remote/wsbackend/Dispatcher.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/wsbackend/Dispatcher.py')
-rw-r--r--module/remote/wsbackend/Dispatcher.py24
1 files changed, 1 insertions, 23 deletions
diff --git a/module/remote/wsbackend/Dispatcher.py b/module/remote/wsbackend/Dispatcher.py
index eb1c9a291..44cc7555e 100644
--- a/module/remote/wsbackend/Dispatcher.py
+++ b/module/remote/wsbackend/Dispatcher.py
@@ -18,7 +18,6 @@
from mod_pywebsocket import util
from mod_pywebsocket.dispatch import Dispatcher as BaseDispatcher
-from mod_pywebsocket.msgutil import receive_message, send_message
class Dispatcher(BaseDispatcher):
@@ -29,25 +28,4 @@ class Dispatcher(BaseDispatcher):
self._source_warnings = []
def addHandler(self, path, handler):
- self._handler_suite_map[path] = handler
-
-
-
-class ApiHandler:
-
- def do_extra_handshake(self, req):
- pass
-
- def transfer_data(self, req):
-
- while True:
- try:
- line = receive_message(req)
- except TypeError: # connection closed
- return
-
- print "Got", line
- send_message(req, "You send: %s" % line)
-
- def passive_closing_handshake(self, req):
- print "Closed", req \ No newline at end of file
+ self._handler_suite_map[path] = handler \ No newline at end of file