mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
split the controllers into separate files
This commit is contained in:
parent
b110705f45
commit
451eb99f8a
10 changed files with 234 additions and 221 deletions
10
owrx/controllers/websocket.py
Normal file
10
owrx/controllers/websocket.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from . import Controller
|
||||
from owrx.websocket import WebSocketConnection
|
||||
from owrx.connection import WebSocketMessageHandler
|
||||
|
||||
|
||||
class WebSocketController(Controller):
|
||||
def handle_request(self):
|
||||
conn = WebSocketConnection(self.handler, WebSocketMessageHandler())
|
||||
# enter read loop
|
||||
conn.handle()
|
||||
Loading…
Add table
Add a link
Reference in a new issue