ReadonlyhostHostname or IP address of the broker.
ReadonlyonCalled when the socket is closed (either side).
ReadonlyonCalled when data arrives from the broker.
ReadonlyonCalled when a socket error occurs.
ReadonlyportPort number of the broker.
Optional ReadonlytlsTLS configuration. When provided with enabled: true, the connection uses TLS.
Options for establishing a socket connection.