Skip to content

v1.1.3

Latest

Choose a tag to compare

@Atheer-Ganayem Atheer-Ganayem released this 19 Oct 14:41

SnapWS v1.1.3

Bug Fixes

  • Fixed a “superfluous response WriteHeader call” caused when a MiddlewareErr was returned. Middleware errors now correctly return after writing the response.

Additions

Internal Improvements

  • Normal (non-batch) message broadcasting is optimized: a single frame with headers and payload is now queued to each connection. This avoids per-connection frame creation, payload copying, and potential fragmentation that previously increased syscalls.
  • broadcastQueue channel draining after closing the connection. This might speed up the GC in some scenarios.