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: 0abbd4da50c3fbffa5e32359b269e96c156c6ef2
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: 873fdc55eddd672960fdbc1325ccb7c4bf466f05
Choose a head ref
Loading
Showing with 7,919 additions and 1,403 deletions.
  1. +8 −1 .github/ISSUE_TEMPLATE.md
  2. +24 −0 .github/workflows/ci.yml
  3. +1 −0 .gitignore
  4. +0 −28 .travis.yml
  5. +7 −0 CHANGELOG.md
  6. +0 −638 History.md
  7. +1 −1 LICENSE
  8. +0 −8 Makefile
  9. +164 −410 Readme.md
  10. +880 −0 docs/API.md
  11. +15 −0 docs/README.md
  12. +64 −0 docs/emit.md
  13. +9 −8 examples/chat/index.js
  14. +27 −27 examples/chat/public/main.js
  15. +31 −0 examples/cluster-haproxy/README.md
  16. +51 −0 examples/cluster-haproxy/docker-compose.yml
  17. +2 −0 examples/cluster-haproxy/haproxy/Dockerfile
  18. +31 −0 examples/cluster-haproxy/haproxy/haproxy.cfg
  19. +15 −0 examples/cluster-haproxy/server/Dockerfile
  20. +87 −0 examples/cluster-haproxy/server/index.js
  21. +17 −0 examples/cluster-haproxy/server/package.json
  22. +28 −0 examples/cluster-haproxy/server/public/index.html
  23. +286 −0 examples/cluster-haproxy/server/public/main.js
  24. +149 −0 examples/cluster-haproxy/server/public/style.css
  25. +31 −0 examples/cluster-httpd/README.md
  26. +51 −0 examples/cluster-httpd/docker-compose.yml
  27. +2 −0 examples/cluster-httpd/httpd/Dockerfile
  28. +52 −0 examples/cluster-httpd/httpd/httpd.conf
  29. +15 −0 examples/cluster-httpd/server/Dockerfile
  30. +82 −0 examples/cluster-httpd/server/index.js
  31. +17 −0 examples/cluster-httpd/server/package.json
  32. +28 −0 examples/cluster-httpd/server/public/index.html
  33. +286 −0 examples/cluster-httpd/server/public/main.js
  34. +149 −0 examples/cluster-httpd/server/public/style.css
  35. +31 −0 examples/cluster-nginx/README.md
  36. +51 −0 examples/cluster-nginx/docker-compose.yml
  37. +3 −0 examples/cluster-nginx/nginx/Dockerfile
  38. +35 −0 examples/cluster-nginx/nginx/nginx.conf
  39. +15 −0 examples/cluster-nginx/server/Dockerfile
  40. +82 −0 examples/cluster-nginx/server/index.js
  41. +17 −0 examples/cluster-nginx/server/package.json
  42. +28 −0 examples/cluster-nginx/server/public/index.html
  43. +286 −0 examples/cluster-nginx/server/public/main.js
  44. +149 −0 examples/cluster-nginx/server/public/style.css
  45. +50 −0 examples/custom-parsers/README.md
  46. +21 −0 examples/custom-parsers/package.json
  47. +13 −0 examples/custom-parsers/public/index.html
  48. +8 −0 examples/custom-parsers/src/client1.js
  49. +11 −0 examples/custom-parsers/src/client2.js
  50. +11 −0 examples/custom-parsers/src/client3.js
  51. +11 −0 examples/custom-parsers/src/client4.js
  52. +125 −0 examples/custom-parsers/src/custom-parser.js
  53. +55 −0 examples/custom-parsers/src/server.js
  54. +15 −0 examples/custom-parsers/support/webpack.config.js
  55. +18 −0 examples/webpack-build-server/README.md
  56. +16 −0 examples/webpack-build-server/lib/index.js
  57. +15 −0 examples/webpack-build-server/package.json
  58. +9 −0 examples/webpack-build-server/support/webpack.config.js
  59. +20 −0 examples/webpack-build/README.md
  60. +13 −0 examples/webpack-build/index.html
  61. +12 −0 examples/webpack-build/lib/index.js
  62. +21 −0 examples/webpack-build/package.json
  63. +2 −0 examples/webpack-build/support/noop.js
  64. +8 −0 examples/webpack-build/support/webpack.config.js
  65. +33 −0 examples/webpack-build/support/webpack.config.json-parser.js
  66. +31 −0 examples/webpack-build/support/webpack.config.slim.js
  67. +17 −0 examples/whiteboard/README.md
  68. +16 −0 examples/whiteboard/index.js
  69. +19 −0 examples/whiteboard/package.json
  70. +23 −0 examples/whiteboard/public/index.html
  71. +106 −0 examples/whiteboard/public/main.js
  72. +44 −0 examples/whiteboard/public/style.css
  73. +0 −69 gulpfile.js
  74. +30 −11 lib/client.js
  75. +103 −36 lib/index.js
  76. +46 −22 lib/namespace.js
  77. +39 −0 lib/parent-namespace.js
  78. +78 −52 lib/socket.js
  79. +3,352 −0 package-lock.json
  80. +12 −20 package.json
  81. +209 −72 test/socket.io.js
9 changes: 8 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

*Note*: for support questions, please use one of these channels: [stackoverflow](http://stackoverflow.com/questions/tagged/socket.io) or [slack](https://socketio.slack.com)
**Note**: for support questions, please use one of these channels: [stackoverflow](http://stackoverflow.com/questions/tagged/socket.io) or [slack](https://socketio.slack.com)

For bug reports and feature requests for the **Swift client**, please open an issue [there](https://github.com/socketio/socket.io-client-swift).

For bug reports and feature requests for the **Java client**, please open an issue [there](https://github.com/socketio/socket.io-client-java).

### You want to:

@@ -8,12 +12,15 @@

### Current behaviour

*What is actually happening?*

### Steps to reproduce (if the current behaviour is a bug)

**Note**: the best way (and by that we mean **the only way**) to get a quick answer is to provide a failing test case by forking the following [fiddle](https://github.com/socketio/socket.io-fiddle).

### Expected behaviour

*What is expected?*

### Setup
- OS:
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
pull_request:

jobs:
test-node:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,3 +11,4 @@ node_modules
coverage
.idea
dist
.nyc_output
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# [2.4.0](https://github.com/socketio/socket.io/compare/2.3.0...2.4.0) (2021-01-04)


### Bug Fixes

* **security:** do not allow all origins by default ([f78a575](https://github.com/socketio/socket.io/commit/f78a575f66ab693c3ea96ea88429ddb1a44c86c7))
* properly overwrite the query sent in the handshake ([d33a619](https://github.com/socketio/socket.io/commit/d33a619905a4905c153d4fec337c74da5b533a9e))
Loading