Changes for version v0.0.52 - 2026-11-24
- A server process that cannot receive PostgreSQL notifications now closes all its WebSocket connections and refuses new ones until it can, instead of keeping browsers connected and catching up later. It checks every listener_check_interval seconds (new option, default 5) that notifications still arrive. A PostgreSQL restart is therefore visible to browsers as a disconnection
- Added kick and disconnect, on the hub (for all of a user's browsers, across server processes) and on the handler context (for the browser being served), and the "identify" plugin option that tells users apart. The JavaScript client does not reconnect after a disconnect
Documentation
Modules
WebSocket channels for Mojolicious whose events and state survive disconnections
Provides
in lib/BoardStreams/Context.pm
in lib/BoardStreams/Diff.pm
in lib/BoardStreams/Hub.pm
in lib/BoardStreams/Hub.pm
in lib/BoardStreams/Rejection.pm
in lib/BoardStreams/Update.pm
in lib/Mojolicious/Plugin/BoardStreams.pm