Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: socketio/socket.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.7.2
Choose a base ref
...
head repository: socketio/socket.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.7.3
Choose a head ref
  • 14 commits
  • 93 files changed
  • 6 contributors

Commits on Aug 12, 2023

  1. docs: use "connection" instead of "connect"

    "connect" and "connection" have the same meaning, but "connection" is
    the preferred version.
    darrachequesne committed Aug 12, 2023

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    fd9dd74 View commit details

Commits on Sep 13, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    8259cda View commit details
  2. docs: improve example with express-session

    The example is now available with different syntaxes:
    
    - CommonJS
    - ES modules
    - TypeScript
    
    Related: #4787
    darrachequesne committed Sep 13, 2023

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    d744fda View commit details

Commits on Sep 20, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    ccbb4c0 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    b4dc83e View commit details

Commits on Oct 10, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bbf1fdc View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    1cdf36b View commit details

Commits on Oct 11, 2023

  1. refactor(typings): improve emit types (#4817)

    This commit fixes several issues with emit types:
    
    - calling `emit()` without calling `timeout()` first is now only available for events without acknowledgement
    - calling `emit()` after calling `timeout()` is now only available for events with an acknowledgement
    - calling `emitWithAck()` is now only available for events with an acknowledgement
    - `timeout()` must be called before calling `emitWithAck()`
    ZachHaber authored Oct 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f6ef267 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    9a2a83f View commit details

Commits on Nov 21, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    3848280 View commit details

Commits on Nov 22, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    efb5c21 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8c9ebc3 View commit details

Commits on Jan 2, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    df8e70f View commit details

Commits on Jan 3, 2024

  1. chore(release): 4.7.3

    darrachequesne committed Jan 3, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    darrachequesne Damien Arrachequesne
    Copy the full SHA
    0d89319 View commit details
Showing with 8,543 additions and 998 deletions.
  1. +30 −0 .github/workflows/ci.yml
  2. +22 −2 CHANGELOG.md
  3. +1 −0 Readme.md
  4. +2 −2 client-dist/socket.io.esm.min.js
  5. +2 −2 client-dist/socket.io.js
  6. +2 −2 client-dist/socket.io.min.js
  7. +2 −2 client-dist/socket.io.msgpack.min.js
  8. +1 −1 examples/angular-todomvc/server.ts
  9. +0 −17 examples/basic-crud-application/angular-client/.browserslistrc
  10. +10 −14 examples/basic-crud-application/angular-client/.gitignore
  11. +5 −9 examples/basic-crud-application/angular-client/README.md
  12. +34 −61 examples/basic-crud-application/angular-client/angular.json
  13. BIN examples/basic-crud-application/angular-client/assets/demo.gif
  14. +0 −37 examples/basic-crud-application/angular-client/e2e/protractor.conf.js
  15. +0 −23 examples/basic-crud-application/angular-client/e2e/src/app.e2e-spec.ts
  16. +0 −11 examples/basic-crud-application/angular-client/e2e/src/app.po.ts
  17. +0 −13 examples/basic-crud-application/angular-client/e2e/tsconfig.json
  18. +0 −44 examples/basic-crud-application/angular-client/karma.conf.js
  19. +27 −33 examples/basic-crud-application/angular-client/package.json
  20. +2 −1 examples/basic-crud-application/angular-client/src/app/app.component.html
  21. +5 −7 examples/basic-crud-application/angular-client/src/app/app.component.spec.ts
  22. +13 −9 examples/basic-crud-application/angular-client/src/app/app.component.ts
  23. +8 −0 examples/basic-crud-application/angular-client/src/app/app.config.ts
  24. +0 −19 examples/basic-crud-application/angular-client/src/app/app.module.ts
  25. +3 −0 examples/basic-crud-application/angular-client/src/app/app.routes.ts
  26. +3 −1 examples/basic-crud-application/angular-client/src/app/store.ts
  27. +3 −0 examples/basic-crud-application/angular-client/src/environments/environment.development.ts
  28. +0 −4 examples/basic-crud-application/angular-client/src/environments/environment.prod.ts
  29. +1 −15 examples/basic-crud-application/angular-client/src/environments/environment.ts
  30. BIN examples/basic-crud-application/angular-client/src/favicon.ico
  31. +1 −1 examples/basic-crud-application/angular-client/src/index.html
  32. +5 −11 examples/basic-crud-application/angular-client/src/main.ts
  33. +0 −63 examples/basic-crud-application/angular-client/src/polyfills.ts
  34. +0 −25 examples/basic-crud-application/angular-client/src/test.ts
  35. +1 −2 examples/basic-crud-application/angular-client/tsconfig.app.json
  36. +8 −5 examples/basic-crud-application/angular-client/tsconfig.json
  37. +0 −4 examples/basic-crud-application/angular-client/tsconfig.spec.json
  38. +0 −152 examples/basic-crud-application/angular-client/tslint.json
  39. +12 −3 examples/basic-crud-application/{server/lib → common}/events.ts
  40. +1 −1 examples/basic-crud-application/server/lib/app.ts
  41. +8 −4 examples/basic-crud-application/server/lib/todo-management/todo.handlers.ts
  42. +1 −8 examples/basic-crud-application/server/lib/todo-management/todo.repository.ts
  43. +23 −0 examples/basic-crud-application/vue-client/.gitignore
  44. +24 −0 examples/basic-crud-application/vue-client/README.md
  45. +5 −0 examples/basic-crud-application/vue-client/babel.config.js
  46. +19 −0 examples/basic-crud-application/vue-client/jsconfig.json
  47. +45 −0 examples/basic-crud-application/vue-client/package.json
  48. BIN examples/basic-crud-application/vue-client/public/favicon.ico
  49. +18 −0 examples/basic-crud-application/vue-client/public/index.html
  50. +381 −0 examples/basic-crud-application/vue-client/public/styles.css
  51. +123 −0 examples/basic-crud-application/vue-client/src/App.vue
  52. BIN examples/basic-crud-application/vue-client/src/assets/logo.png
  53. +9 −0 examples/basic-crud-application/vue-client/src/main.js
  54. +7 −0 examples/basic-crud-application/vue-client/src/socket.js
  55. +106 −0 examples/basic-crud-application/vue-client/src/stores/todo.js
  56. +4 −0 examples/basic-crud-application/vue-client/vue.config.js
  57. +6,309 −0 examples/basic-crud-application/vue-client/yarn.lock
  58. +25 −0 examples/connection-state-recovery-example/README.md
  59. BIN examples/connection-state-recovery-example/assets/csr.gif
  60. +1 −0 examples/connection-state-recovery-example/cjs/.codesandbox/Dockerfile
  61. +18 −0 examples/connection-state-recovery-example/cjs/.codesandbox/tasks.json
  62. +49 −0 examples/connection-state-recovery-example/cjs/index.html
  63. +53 −0 examples/connection-state-recovery-example/cjs/index.js
  64. +13 −0 examples/connection-state-recovery-example/cjs/package.json
  65. +1 −0 examples/connection-state-recovery-example/esm/.codesandbox/Dockerfile
  66. +18 −0 examples/connection-state-recovery-example/esm/.codesandbox/tasks.json
  67. +49 −0 examples/connection-state-recovery-example/esm/index.html
  68. +53 −0 examples/connection-state-recovery-example/esm/index.js
  69. +13 −0 examples/connection-state-recovery-example/esm/package.json
  70. +1 −1 examples/es-modules/server.js
  71. +4 −0 examples/express-session-example/{ → cjs}/index.html
  72. +66 −0 examples/express-session-example/cjs/index.js
  73. +15 −0 examples/express-session-example/cjs/package.json
  74. +61 −0 examples/express-session-example/esm/index.html
  75. +7 −33 examples/express-session-example/{ → esm}/index.js
  76. +1 −1 examples/express-session-example/{ → esm}/package.json
  77. +61 −0 examples/express-session-example/ts/index.html
  78. +72 −0 examples/express-session-example/ts/index.ts
  79. +20 −0 examples/express-session-example/ts/package.json
  80. +11 −0 examples/express-session-example/ts/tsconfig.json
  81. +1 −1 examples/typescript/server.ts
  82. +10 −11 lib/broadcast-operator.ts
  83. +28 −56 lib/index.ts
  84. +44 −45 lib/namespace.ts
  85. +2 −2 lib/parent-namespace.ts
  86. +4 −3 lib/socket.ts
  87. +133 −15 lib/typed-events.ts
  88. +51 −38 package-lock.json
  89. +2 −2 package.json
  90. +1 −1 test/namespaces.ts
  91. +358 −176 test/socket.io.test-d.ts
  92. +5 −3 test/socket.ts
  93. +6 −2 test/support/util.ts
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -36,3 +36,33 @@ jobs:
run: npm test
env:
CI: true

build-examples:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
example:
- custom-parsers
- typescript
- webpack-build
- webpack-build-server
- basic-crud-application/angular-client
- basic-crud-application/vue-client

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Build ${{ matrix.example }}
run: |
cd examples/${{ matrix.example }}
npm install
npm run build
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 2024

- [4.7.3](#473-2024-01-03) (Jan 2024)

## 2023

- [4.7.2](#472-2023-08-02) (Aug 2023)
@@ -61,6 +65,22 @@

# Release notes

## [4.7.3](https://github.com/socketio/socket.io/compare/4.7.2...4.7.3) (2024-01-03)


### Bug Fixes

* return the first response when broadcasting to a single socket ([#4878](https://github.com/socketio/socket.io/issues/4878)) ([df8e70f](https://github.com/socketio/socket.io/commit/df8e70f79822e3887b4f21ca718af8a53bbda2c4))
* **typings:** allow to bind to a non-secure Http2Server ([#4853](https://github.com/socketio/socket.io/issues/4853)) ([8c9ebc3](https://github.com/socketio/socket.io/commit/8c9ebc30e5452ff9381af5d79f547394fa55633c))


### Dependencies

- [`engine.io@~6.5.2`](https://github.com/socketio/engine.io/releases/tag/6.5.2) (no change)
- [`ws@~8.11.0`](https://github.com/websockets/ws/releases/tag/8.11.0) (no change)



## [4.7.2](https://github.com/socketio/socket.io/compare/4.7.1...4.7.2) (2023-08-02)


@@ -855,7 +875,7 @@ new Server(3000, {
const socket = io("/admin");

// server-side
io.on("connect", socket => {
io.on("connection", socket => {
// not triggered anymore
})

@@ -1006,7 +1026,7 @@ new Server(3000, {
const socket = io("/admin");

// server-side
io.on("connect", socket => {
io.on("connection", socket => {
// not triggered anymore
})

1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ Some implementations in other languages are also available:
- [Python](https://github.com/miguelgrinberg/python-socketio)
- [.NET](https://github.com/doghappy/socket.io-client-csharp)
- [Rust](https://github.com/1c3t3a/rust-socketio)
- [PHP](https://github.com/ElephantIO/elephant.io)

Its main features are:

Loading