Skip to content

Commit

Permalink
Use the endpoint from the socket (#1579)
Browse files Browse the repository at this point in the history
Fixes an issue when devices connect using the web endpoint
  • Loading branch information
joshk authored Oct 3, 2024
1 parent 40b434e commit c61a588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nerves_hub_web/channels/device_socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ defmodule NervesHubWeb.DeviceSocket do
{:ok, _device} = Devices.device_heartbeat(device)

_ =
NervesHubWeb.DeviceEndpoint.broadcast(
socket.endpoint.broadcast_from(
self(),
"device:#{device.identifier}:internal",
"connection:heartbeat",
%{}
Expand Down

0 comments on commit c61a588

Please sign in to comment.