Changes for version v0.0.60 - 2026-11-27

  • The WebSocket route now works behind an "under" that answers later (returns undef and calls $c->continue afterwards), given through the routes option. Until now the server closed such a connection right after its first heartbeat, with code 1006. Headers that the "under" sets on the response are sent with the answer to the handshake. Nothing changes on the wire
  • BoardStreams::Client: new options "headers" (headers for the handshake request of every connection attempt, computed anew each time if given as a sub) and "on_handshake" (a sub that is shown the answer to each handshake, including a refusal such as 401 or 403, and decides whether to use the connection, try again, or stop for good with an error of its choosing). The JavaScript client has the same two options under Node.js, with the NodeWebSocket of "boardstreams/node"; a browser's WebSocket can do neither

Documentation

Modules

WebSocket channels for Mojolicious whose events and state survive disconnections
Connect to a BoardStreams server from Perl

Provides

in lib/BoardStreams/Client/Channel.pm
in lib/BoardStreams/Client/Error.pm
in lib/BoardStreams/Client/Handshake.pm
in lib/BoardStreams/Client/Membership.pm
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