openwebrx-clone/owrx/controllers/websocket.py
2021-05-18 16:00:15 +02:00

11 lines
316 B
Python

from . import Controller
from owrx.websocket import WebSocketConnection
from owrx.connection import HandshakeMessageHandler
class WebSocketController(Controller):
def indexAction(self):
conn = WebSocketConnection(self.handler, HandshakeMessageHandler())
# enter read loop
conn.handle()