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