nerves-hub / nerves_hub_link

Connect devices to NervesHub via a Phoenix channel
https://hex.pm/packages/nerves_hub_link
Apache License 2.0
36 stars 18 forks source link

Remove `NervesHubLink.Connection` #137

Closed jjcarstens closed 11 months ago

jjcarstens commented 11 months ago

This was previously an Agent for minimal connection state that was used due to the limitations of phoenix_client and socket tracking. However, since the switch to slipstream is has been unneeded and virtually unused.

There was also some behavior of checking "uptime" of the connection which is removed with this change in favor of NHL users handling that check with their own logic. Times for process start, connection, and successful join are now saved in the socket instead of the Agent for future use