X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fwsgateway.py;h=01a80426d84f56c98301c3c92a682c98e05c6259;hb=5bd4b1bad2506f2f5f71161ac9e8a9b141e0fef4;hp=8f2c6484b2fea8515909be63e22c45d21b3abd8e;hpb=15537c8be40f3ba25c5a51af75d9bed53a8a215d;p=loctrkd.git diff --git a/loctrkd/wsgateway.py b/loctrkd/wsgateway.py index 8f2c648..01a8042 100644 --- a/loctrkd/wsgateway.py +++ b/loctrkd/wsgateway.py @@ -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]] = []