2020-02-23 16:22:13 +00:00
|
|
|
from . import Controller
|
|
|
|
from owrx.websocket import WebSocketConnection
|
|
|
|
from owrx.connection import WebSocketMessageHandler
|
|
|
|
|
|
|
|
|
|
|
|
class WebSocketController(Controller):
|
2020-02-23 17:32:37 +00:00
|
|
|
def indexAction(self):
|
2020-02-23 16:22:13 +00:00
|
|
|
conn = WebSocketConnection(self.handler, WebSocketMessageHandler())
|
|
|
|
# enter read loop
|
|
|
|
conn.handle()
|