Skip to content

4.22.0

Choose a tag to compare

@mehmetkose mehmetkose released this 28 Oct 23:44
0d12311

The library's code is the same as in 4.21.0. This release adds documentation that came from comparing the client
with Faye's.

Documentation

  • Publishing with an acknowledgement,
    a new pattern in the recipes: publish to a topic and await the server's answer with createWebSocketRequests,
    tell a refusal from an answer that never came, retry without publishing twice, and use the outbox instead for
    messages that must survive a reload.
  • Letting the server decide,
    a new section in the reconnecting guide: how a server tells clients to come back later, start over on a new
    connection, or not come back, the three kinds of reconnect advice Bayeux servers such as Faye give, with the close
    codes and messages that carry them.
  • Headers, proxies and TLS
    in Node: a ws subclass that sends headers with a fresh token on every connection, connects through a proxy,
    trusts a private certificate authority, and ends attempts that hang, which neither the client nor ws does on
    its own when a proxy doesn't answer.