on_read_option Event
Fires when the client sends in a read option request.
Syntax
class DCAuthWebServerReadOptionEventParams(object): @property def connection_id() -> int: ... @property def name() -> str: ... @property def value() -> str: ... @value.setter def value(value) -> None: ... @property def success() -> bool: ... @success.setter def success(value) -> None: ... # In class DCAuthWebServer: @property def on_read_option() -> Callable[[DCAuthWebServerReadOptionEventParams], None]: ... @on_read_option.setter def on_read_option(event_hook: Callable[[DCAuthWebServerReadOptionEventParams], None]) -> None: ...
Remarks
Subscribe to this event to respond to the clients' read option requests. The handler should retrieve the value of the requested option from a local configuration setting and assign it to the Value parameter.