Skip to content

Commit

Permalink
fix(ex/Realtime.Server): use broadcast_local instead of broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Oct 15, 2024
1 parent 08dc1eb commit a341d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/realtime/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ defmodule Realtime.Server do
:alerts -> "realtime_alerts"
end

Phoenix.PubSub.broadcast(pubsub_name(), topic, {:new_realtime_data, state.ets})
Phoenix.PubSub.local_broadcast(pubsub_name(), topic, {:new_realtime_data, state.ets})
end

@spec block_is_active?(VehicleOrGhost.t()) :: boolean
Expand Down

0 comments on commit a341d6b

Please sign in to comment.