Skip to content

ZMQ runtime configuration

hololinked.server.zmq.config.RuntimeConfig

Bases: BaseModel

Runtime configuration for the ZMQ server.

Pass the attributes of this class as a dictionary to the config argument of ZMQServer.

Source code in repo/hololinked/hololinked/server/zmq/config.py
class RuntimeConfig(BaseModel):
    """
    Runtime configuration for the ZMQ server.

    Pass the attributes of this class as a dictionary to the `config` argument of `ZMQServer`.
    """

    thing_description_service: type[ThingDescriptionService] | Any = ThingDescriptionService
    """service class used to generate the Thing Description, with forms addressing this server's sockets"""

Attributes

thing_description_service class-attribute instance-attribute

thing_description_service: type[ThingDescriptionService] | Any = ThingDescriptionService

service class used to generate the Thing Description, with forms addressing this server's sockets

Pass as a plain dictionary to the config argument of ZMQServer:

ZMQServer(config=dict(thing_description_service=MyService))