ServerNotify¶
Lifecycle event receiver for Server.
Implement this interface to receive notifications about server state changes. All behaviors have default no-op implementations — override only what you need.
Modeled after the notify pattern in ponylang/postgres.
Public Behaviours¶
listening¶
The server is bound and accepting connections.
host and service are the actual bound address and port, which
is useful when binding to port 0 (OS-assigned).
Parameters¶
listen_failed¶
The server failed to bind (port in use, permission denied, etc.).
Parameters¶
connection_failed¶
A per-connection failure occurred (e.g., SSL handshake error).
Parameters¶
closed¶
The server was closed externally (not via dispose()).
Parameters¶
- server: Server tag