Always broadcast from update_device_status/2 so the device index LiveView refreshes even when status hasn't changed. Add a 15-second tick timer to keep "Last Checked" timestamps fresh between polls. Scope alert PubSub topics to organization for defense-in-depth. |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| integration | ||
| live | ||
| plugs | ||
| permissions_test.exs | ||
| plug_exceptions_test.exs | ||
| user_auth_test.exs | ||