Packages

socket.io

4.8.4 · 25 Sep 2026MIT16.6M / weekRepositoryHomepagenpmAtom feed

Your version

151 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 4.x · latest line
  2. 4.8.4

    25 Sep 2026
    • Cleanup pending acks on timeout to prevent memory leak

    • Prevent uWebSockets.js from serving missing client files

    • Reject stateful regexps for dynamic namespaces

  3. 4.8.3

    23 Dec 2025
    • Do not throw when calling io.close() on a stopped server

  4. 4.8.2

    22 Dec 2025
    • Call adapter.init() when creating each namespace

    • Improve io.close() function

  5. 4.8.1

    25 Oct 2024

    Due to a change in the bundler configuration, the production bundle (socket.io.min.js) did not support sending and receiving binary data in version 4.8.0. This is now fixed.

  6. 4.8.0

    21 Sep 2024
    • Allow to join a room in a middleware (uws)

    • Correctly await async close on adapters

    • Expose type of default engine

  7. 4.7.5

    14 Mar 2024
    • Close the adapters when the server is closed

    • Remove duplicate pipeline when serving bundle

  8. 4.7.4

    12 Jan 2024
    • typings: calling io.emit with no arguments incorrectly errored (cb6d2e0), closes #4914

  9. 4.7.3

    3 Jan 2024
    • Return the first response when broadcasting to a single socket

    • typings: allow to bind to a non-secure Http2Server

  10. 4.7.2

    2 Aug 2023
    • Clean up child namespace when client is rejected in middleware

    • webtransport: properly handle WebTransport-only connections

    • webtransport: add proper framing

  11. 4.7.1

    28 Jun 2023

    The client bundle contains a few fixes regarding the WebTransport support.

  12. 4.7.0

    22 Jun 2023
    • Remove the Partial modifier from the socket.data type

  13. 4.6.2

    31 May 2023
    • exports: move types condition to the top

  14. 4.6.1

    20 Feb 2023
    • Properly handle manually created dynamic namespaces

    • types: fix nodenext module resolution compatibility

  15. 4.6.0

    7 Feb 2023
    • Add timeout method to remote socket

    • typings: properly type emits with timeout

    • emitWithAck()

  16. 4.5.4

    22 Nov 2022
  17. 4.5.3

    15 Oct 2022
    • typings: accept an HTTP2 server in the constructor

    • typings: apply types to "io.timeout(...).emit()" calls

  18. 4.5.2

    2 Sep 2022

    Reading the note…

  19. 4.5.1

    17 May 2022

    Reading the note…

  20. 4.5.0

    23 Apr 2022
    • typings: ensure compatibility with TypeScript 3.x

  21. 4.4.1

    6 Jan 2022

    Reading the note…

  22. 4.4.0

    18 Nov 2021
    • Only set 'connected' to true after middleware execution

    • Add an implementation based on uWebSockets.js

    • Add timeout feature

  23. 4.3.2

    8 Nov 2021

    Reading the note…

  24. 4.3.1

    16 Oct 2021

    Reading the note…

  25. 4.3.0

    14 Oct 2021
    • typings: add name field to cookie option

    • Send volatile packets with binary attachments

    • Serve ESM bundle

  26. 4.2.0

    30 Aug 2021
    • typings: allow async listener in typed events

    • Ignore the query string when serving client JavaScript

  27. 4.1.3

    10 Jul 2021

    Reading the note…

  28. 4.1.2

    17 May 2021

    Reading the note…

  29. 4.1.1

    11 May 2021

    Reading the note…

  30. 4.1.0

    11 May 2021
    • Add support for inter-server communication

    • Notify upon namespace creation

    • Add a "connection_error" event (7096e98, from engine.io)

  31. 4.0.2

    6 May 2021

    Reading the note…

  32. 4.0.1

    31 Mar 2021

    Reading the note…

  33. 4.0.0

    10 Mar 2021
    • Make io.to(...) immutable

    • Add some utility methods

    • Add support for typed events

  34. 3.x
  35. 3.1.2

    26 Feb 2021

    Reading the note…

  36. 3.1.1

    3 Feb 2021

    Reading the note…

  37. 3.1.0

    15 Jan 2021

    Reading the note…

  38. 3.0.5

    5 Jan 2021

    Reading the note…

  39. 3.0.4

    7 Dec 2020

    Reading the note…

  40. 3.0.3

    19 Nov 2020

    Reading the note…

  41. 3.0.2

    17 Nov 2020

    Reading the note…

  42. 3.0.1

    9 Nov 2020

    Reading the note…

  43. 3.0.0

    5 Nov 2020

    Reading the note…

  44. 2.x
  45. 2.5.1

    19 Jun 2024

    Reading the note…

  46. 2.5.0

    26 Jun 2022

    Reading the note…

  47. 2.4.1

    7 Jan 2021

    Reading the note…

  48. 2.4.0

    4 Jan 2021

    Reading the note…

  49. 2.3.0

    20 Sep 2019

    Reading the note…

  50. 2.2.0

    28 Nov 2018

    Reading the note…

  51. 2.1.1

    17 May 2018

    Reading the note…

  52. 2.1.0

    29 Mar 2018

    Reading the note…

  53. 2.0.4

    22 Oct 2017

    Reading the note…