v4.5.0 Release Notes

Release Date: 2022-04-23 // 2 months ago
  • ๐Ÿ› Bug Fixes

    • typings: ensure compatibility with TypeScript 3.x (#4259) (02c87a8)

    ๐Ÿ”‹ Features

    • โž• add support for catch-all listeners for outgoing packets (531104d)

    This is similar to onAny(), but for outgoing packets.


    socket.onAnyOutgoing((event, ...args) => {
    • broadcast and expect multiple acks (8b20457)


    io.timeout(1000).emit("some-event", (err, responses) => {
      // ...
    • โž• add the "maxPayload" field in the handshake details (088dcb4)

    So that clients in HTTP long-polling can decide how many packets they have to send to stay under the maxHttpBufferSize value.

    This is a backward compatible change which should not mandate a new major revision of the protocol (we stay in v4), as we only add a field in the JSON-encoded handshake data: