class Events: STARTED = "started" START_ERROR = "error_start" READY = "ready" USER_ADDED = "user_added" USER_REMOVED = "user_removed" PEER_CONNECTED = "peer_connected" PEER_CONNECTION_ERROR = "peer_connection_error" PEER_DISCONNECTED = "peer_disconnected" class DynamicEvents: @staticmethod def peer_connection(id:str) -> str: return f"peer_connection_{id}" @staticmethod def peer_connection_error(id:str) -> str: return f"peer_connection_error_{id}" @staticmethod def peer_disconnection(id:str) -> str: return f"peer_disconnection_{id}" @staticmethod def module_message(lib: str, module: str) -> str: return f"module_message_{lib}_{module}" @staticmethod def module_connection(lib: str, module: str) -> str: return f"module_connection_{lib}_{module}" @staticmethod def module_disconnection(lib: str, module: str) -> str: return f"module_disconnection_{lib}_{module}" @staticmethod def network_connection(network: str) -> str: return f"network_connection_{network}" @staticmethod def network_disconnection(network: str) -> str: return f"network_disconnection_{network}" class ServerEvents: TEST = "test"