openwebrx-clone/owrx/controllers/websocket.py

11 lines
316 B
Python
Raw Normal View History

from . import Controller
from owrx.websocket import WebSocketConnection
2021-05-18 14:00:15 +00:00
from owrx.connection import HandshakeMessageHandler
class WebSocketController(Controller):
def indexAction(self):
2021-05-18 14:00:15 +00:00
conn = WebSocketConnection(self.handler, HandshakeMessageHandler())
# enter read loop
conn.handle()