Skip to content

Commit

Permalink
use IsConnectionOpen to determine connected state
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Feb 7, 2024
1 parent 670f8a7 commit 6b4ffe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func transformClientInfo(cc mqtt.Client, subscribedTopics ...string) MQTTClientI
ResumeSubs: opts.ResumeSubs(),
CleanSession: opts.CleanSession(),
AutoReconnect: opts.AutoReconnect(),
Connected: cc.IsConnected(),
Connected: cc.IsConnectionOpen(),
Subscriptions: subscribedTopics,
}
}

0 comments on commit 6b4ffe3

Please sign in to comment.