on_accept Event
Reports an incoming connection.
Syntax
class TLSServerAcceptEventParams(object): @property def remote_address() -> str: ... @property def remote_port() -> int: ... @property def accept() -> bool: ... @accept.setter def accept(value) -> None: ... # In class TLSServer: @property def on_accept() -> Callable[[TLSServerAcceptEventParams], None]: ... @on_accept.setter def on_accept(event_hook: Callable[[TLSServerAcceptEventParams], None]) -> None: ...
Remarks
This event is fired when a new connection from RemoteAddress:RemotePort is ready to be accepted. Use the Accept parameter to accept or decline it.
Subscribe to on_connect event to be notified of every connection that has been set up.