spoke/tcp

Values

pub fn connector(
  host host: String,
  port port: Int,
  connect_timeout connect_timeout: Int,
) -> fn() -> Result(mqtt_actor.TransportChannel, String)

Constructs an (unencrypted) TCP connector.

pub fn connector_with_defaults(
  host host: String,
) -> fn() -> Result(mqtt_actor.TransportChannel, String)

Constructs an (unencrypted) TCP connector using the defaults of connecting to port 1883 on the given host.

Search Document