GetConnection
Source:
src/AWS/IoT/GetConnection.ts
Runtime binding for the IoT data-plane GetConnection operation (IAM
action iot:GetConnection).
Binding to a client id filter grants iot:GetConnection on matching
MQTT client ARNs (or all clients when the filter is omitted) and returns
a callable that reads a client’s connection state. Provide the
implementation with Effect.provide(AWS.IoT.GetConnectionHttp).
MQTT Connections
Section titled “MQTT Connections”const getConnection = yield* AWS.IoT.GetConnection("sensor-*");
const { connected } = yield* getConnection({ clientId: "sensor-1" });