]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/wsgateway.py
protocols: make "interface" module
[loctrkd.git] / loctrkd / wsgateway.py
index 8f2c6484b2fea8515909be63e22c45d21b3abd8e..01a80426d84f56c98301c3c92a682c98e05c6259 100644 (file)
@@ -23,25 +23,12 @@ import zmq
 
 from . import common
 from .evstore import initdb, fetch
+from .protomodule import ProtoModule
 from .zmsg import Bcast, topic
 
 log = getLogger("loctrkd/wsgateway")
 
 
-class ProtoModule:
-    @staticmethod
-    def parse_message(packet: bytes, is_incoming: bool = True) -> Any:
-        ...
-
-    @staticmethod
-    def exposed_protos() -> List[Tuple[str, bool]]:
-        ...
-
-    @staticmethod
-    def proto_handled(proto: str) -> bool:
-        ...
-
-
 htmlfile = None
 pmods: List[ProtoModule] = []
 selector: List[Tuple[bool, str]] = []