Revision history for Perl extension BoardStreams

v0.0.60 2026-11-27T19:07:11Z

    - 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

v0.0.59 2026-11-27T11:08:42Z

    - INCOMPATIBLE: the protocol version is now 2, so this release needs
      clients of this release, and its clients need a server of it.
      Upgrade both together
    - Changes at the ends of an array in a channel's state are now sent as
      small diffs: items removed from the start or the end and items added
      at the start, as well as items added at the end as before. That
      covers push, pop, shift and unshift, alone or together. Previously
      everything but a push sent the whole array

v0.0.58 2026-11-26T13:50:09Z

    - A graceful stop (QUIT, a hypnotoad hot deployment, a worker reaching
      its accepts limit) no longer waits for graceful_timeout: the plugin
      closes its WebSocket connections as soon as the stop begins, with
      close code 1001. Clients reconnect by themselves and catch up. Under
      Docker this showed as a container that took its whole
      stop_grace_period to stop

    - BoardStreams::Client: when no channel has been joined for 30 seconds
      the client closes its connection (status "idle"), and the next join
      opens one again. The idle_delay option changes that time, and undef
      turns it off. The JavaScript client has the same change (idleDelay,
      in milliseconds; null turns it off)

v0.0.57 2026-11-26T11:03:22Z

    - BoardStreams::Client: every call of join now returns a channel object
      of its own. The objects for one channel share a single membership on
      the server, and the client leaves the channel when the last of them
      has left, so separate parts of a program no longer have to
      coordinate their leave calls. Code that joined a channel twice and
      left it once now stays joined until the second object leaves too.
      The JavaScript client has the same change

v0.0.56 2026-11-25T15:18:08Z

    - Server and clients now check a protocol version in place of the
      library version: a whole number, BoardStreams::PROTOCOL_VERSION,
      currently 1, which goes up only when a release makes the protocol
      incompatible with earlier ones. Library versions no longer have to
      match. The first heartbeat announces it as "protocol", and the
      reason for a refusal is now "protocol_mismatch"
    - INCOMPATIBLE: because the announcement itself changed, this release
      does not work with clients or servers of v0.0.55 and earlier

v0.0.55 2026-11-25T14:20:08Z

    - Added BoardStreams::Client, a Perl client that is a port of the
      JavaScript one: it connects over a WebSocket with Mojo::UserAgent
      and exposes channels through RxPerl observables and Mojo promises

v0.0.54 2026-11-25T07:27:20Z

    - A process announces the schema version it works with, and a process
      whose code only knows an older one stops serving when it hears that,
      instead of going on using upgraded tables the old way
    - Kicks, deletions and these announcements are now confined to the
      PostgreSQL schema that holds the tables, so that applications
      sharing a database no longer hear each other's

    - Added delete_channel, which deletes a channel's state and history
      and removes its members, telling them
    - Schema version 2, applied automatically: bs_event and bs_request now
      reference bs_channel with "on delete cascade" (rows left over from
      channels deleted by hand are removed by the migration), and a new
      table bs_floor keeps sequence numbers of deleted channels from
      being reused. New channels therefore no longer necessarily start
      at sequence number 0

v0.0.53 2026-11-25T01:04:49Z

    - Added kick_all, which removes every member from a channel

v0.0.52 2026-11-24T23:30:32Z

    - 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

v0.0.51 2026-11-24T21:34:41Z

    - The first heartbeat of a connection now announces the version, and
      the JavaScript client refuses to work with a server of any other
      version (reason "version_mismatch"). Clients older than this change
      are not affected by it

    - Added the lazy_migrate plugin option, which postpones creating the
      tables until they are first needed
    - The tables are now also created on first use if PostgreSQL could not
      be reached at startup and update() is called before any browser
      connects

v0.0.50 2026-11-24T18:39:51Z

    - original version

