Skip to main content
Version: Next

What's new in 3.0.0?

This update

This update brings Bun 1.3.0 (and 1.2.22) compatibility to ZilaWS while modifying how syncing cookies work. ZilaWS 2.3.0 also fixes an issue in previous versions where, if the server called a waiter on a client, there was a chance that the called waiter was not yet registered on the client. This is why, from this version, the creation of ZilaConnection instances on the client side has changed.

Server side

  • Bun runtime support with automatic server wrapper selection
  • New cookie syncing system via the /zilaws/cookieSync HTTP endpoint
  • cookieSyncAllowedOrigins and sessionTokenCookieName server settings
  • reusePort option for Bun load-balancing
  • allowSelfSigned HTTPS option

Client side

  • Register message handlers before calling connectTo by creating a ZilaConnection first
  • Cookie changes from the server propagate automatically; call syncCookies() when the browser changes document.cookie
  • onCookieSync local event replaces onCookieSet and onCookieDelete

Other additions

  • Added automated browser unit tests to the client package