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: e6b869738c73fa0ce9928974d823e50cc92f7a1a
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: f8a66fd11acffb72fcb90750affd5dce42bef977
Choose a head ref
Loading
Showing with 56,144 additions and 5,219 deletions.
  1. +0 −32 .github/ISSUE_TEMPLATE.md
  2. +61 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +5 −0 .github/ISSUE_TEMPLATE/config.yml
  4. +20 −0 .github/ISSUE_TEMPLATE/feature_request.md
  5. +2 −2 .github/PULL_REQUEST_TEMPLATE.md
  6. +26 −0 .github/workflows/ci.yml
  7. +2 −2 .gitignore
  8. +0 −12 .travis.yml
  9. +298 −0 CHANGELOG.md
  10. +18 −3 Readme.md
  11. +7,417 −0 client-dist/socket.io.js
  12. +1 −0 client-dist/socket.io.js.map
  13. +7 −0 client-dist/socket.io.min.js
  14. +1 −0 client-dist/socket.io.min.js.map
  15. +7 −0 client-dist/socket.io.msgpack.min.js
  16. +1 −0 client-dist/socket.io.msgpack.min.js.map
  17. +0 −880 docs/API.md
  18. +1 −14 docs/README.md
  19. +0 −64 docs/emit.md
  20. +17 −0 examples/angular-todomvc/.browserslistrc
  21. +16 −0 examples/angular-todomvc/.editorconfig
  22. +46 −0 examples/angular-todomvc/.gitignore
  23. +35 −0 examples/angular-todomvc/README.md
  24. +128 −0 examples/angular-todomvc/angular.json
  25. BIN examples/angular-todomvc/assets/demo.gif
  26. +37 −0 examples/angular-todomvc/e2e/protractor.conf.js
  27. +23 −0 examples/angular-todomvc/e2e/src/app.e2e-spec.ts
  28. +11 −0 examples/angular-todomvc/e2e/src/app.po.ts
  29. +13 −0 examples/angular-todomvc/e2e/tsconfig.json
  30. +44 −0 examples/angular-todomvc/karma.conf.js
  31. +13,694 −0 examples/angular-todomvc/package-lock.json
  32. +48 −0 examples/angular-todomvc/package.json
  33. +28 −0 examples/angular-todomvc/server.ts
  34. 0 examples/angular-todomvc/src/app/app.component.css
  35. +23 −0 examples/angular-todomvc/src/app/app.component.html
  36. +31 −0 examples/angular-todomvc/src/app/app.component.spec.ts
  37. +59 −0 examples/angular-todomvc/src/app/app.component.ts
  38. +19 −0 examples/angular-todomvc/src/app/app.module.ts
  39. +95 −0 examples/angular-todomvc/src/app/store.ts
  40. 0 examples/angular-todomvc/src/assets/.gitkeep
  41. +3 −0 examples/angular-todomvc/src/environments/environment.prod.ts
  42. +16 −0 examples/angular-todomvc/src/environments/environment.ts
  43. BIN examples/angular-todomvc/src/favicon.ico
  44. +13 −0 examples/angular-todomvc/src/index.html
  45. +12 −0 examples/angular-todomvc/src/main.ts
  46. +63 −0 examples/angular-todomvc/src/polyfills.ts
  47. +381 −0 examples/angular-todomvc/src/styles.css
  48. +25 −0 examples/angular-todomvc/src/test.ts
  49. +15 −0 examples/angular-todomvc/tsconfig.app.json
  50. +29 −0 examples/angular-todomvc/tsconfig.json
  51. +18 −0 examples/angular-todomvc/tsconfig.spec.json
  52. +152 −0 examples/angular-todomvc/tslint.json
  53. +2 −5 examples/chat/README.md
  54. +8 −8 examples/chat/index.js
  55. +499 −0 examples/chat/package-lock.json
  56. +2 −1 examples/chat/package.json
  57. +23 −0 examples/create-react-app-example/.gitignore
  58. +72 −0 examples/create-react-app-example/README.md
  59. +37 −0 examples/create-react-app-example/package.json
  60. BIN examples/create-react-app-example/public/favicon.ico
  61. +43 −0 examples/create-react-app-example/public/index.html
  62. BIN examples/create-react-app-example/public/logo192.png
  63. BIN examples/create-react-app-example/public/logo512.png
  64. +25 −0 examples/create-react-app-example/public/manifest.json
  65. +3 −0 examples/create-react-app-example/public/robots.txt
  66. +19 −0 examples/create-react-app-example/server.js
  67. +38 −0 examples/create-react-app-example/src/App.css
  68. +43 −0 examples/create-react-app-example/src/App.js
  69. +9 −0 examples/create-react-app-example/src/App.test.js
  70. +13 −0 examples/create-react-app-example/src/index.css
  71. +17 −0 examples/create-react-app-example/src/index.js
  72. +7 −0 examples/create-react-app-example/src/logo.svg
  73. +141 −0 examples/create-react-app-example/src/serviceWorker.js
  74. +5 −0 examples/create-react-app-example/src/setupTests.js
  75. +11,106 −0 examples/create-react-app-example/yarn.lock
  76. +17 −0 examples/es-modules/README.md
  77. +18 −0 examples/es-modules/client.js
  78. +217 −0 examples/es-modules/package-lock.json
  79. +15 −0 examples/es-modules/package.json
  80. +16 −0 examples/es-modules/server.js
  81. +14 −0 examples/passport-example/README.md
  82. BIN examples/passport-example/assets/passport_example.gif
  83. +31 −0 examples/passport-example/index.html
  84. +104 −0 examples/passport-example/index.js
  85. +24 −0 examples/passport-example/login.html
  86. +783 −0 examples/passport-example/package-lock.json
  87. +16 −0 examples/passport-example/package.json
  88. +4 −0 examples/react-native/.expo-shared/assets.json
  89. +14 −0 examples/react-native/.gitignore
  90. +71 −0 examples/react-native/App.js
  91. +20 −0 examples/react-native/README.md
  92. +28 −0 examples/react-native/app.json
  93. BIN examples/react-native/assets/icon.png
  94. BIN examples/react-native/assets/react-native-demo.gif
  95. BIN examples/react-native/assets/react-native.png
  96. BIN examples/react-native/assets/server-ip.png
  97. BIN examples/react-native/assets/splash.png
  98. +6 −0 examples/react-native/babel.config.js
  99. +6,654 −0 examples/react-native/package-lock.json
  100. +24 −0 examples/react-native/package.json
  101. +19 −0 examples/react-native/server.js
  102. +30 −0 examples/tweet-stream/index.js
  103. +705 −0 examples/tweet-stream/package-lock.json
  104. +20 −0 examples/tweet-stream/package.json
  105. +18 −0 examples/typescript/client.ts
  106. +295 −0 examples/typescript/package-lock.json
  107. +19 −0 examples/typescript/package.json
  108. +16 −0 examples/typescript/server.ts
  109. +9 −0 examples/typescript/tsconfig.json
  110. +4,137 −0 examples/webpack-build-server/package-lock.json
  111. +3 −2 examples/webpack-build-server/package.json
  112. +2 −2 examples/whiteboard/README.md
  113. +499 −0 examples/whiteboard/package-lock.json
  114. +2 −2 examples/whiteboard/package.json
  115. +0 −273 lib/client.js
  116. +287 −0 lib/client.ts
  117. +0 −523 lib/index.js
  118. +714 −0 lib/index.ts
  119. +0 −299 lib/namespace.js
  120. +288 −0 lib/namespace.ts
  121. +0 −39 lib/parent-namespace.js
  122. +44 −0 lib/parent-namespace.ts
  123. +0 −572 lib/socket.js
  124. +657 −0 lib/socket.ts
  125. +2,692 −0 package-lock.json
  126. +48 −14 package.json
  127. +0 −11 test/fixtures/server-close.js
  128. +11 −0 test/fixtures/server-close.ts
  129. +0 −2,459 test/socket.io.js
  130. +2,433 −0 test/socket.io.ts
  131. +22 −0 test/support/util.ts
  132. +22 −0 tsconfig.json
  133. +3 −0 wrapper.mjs
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

Please fill the following code example:

Socket.IO server version: `x.y.z`

*Server*

```js
import { Server } from "socket.io";

const io = new Server(3000, {});

io.on("connection", (socket) => {
console.log(`connect ${socket.id}`);

socket.on("disconnect", () => {
console.log(`disconnect ${socket.id}`);
});
});
```

Socket.IO client version: `x.y.z`

*Client*

```js
import { io } from "socket.io-client";

const socket = io("ws://localhost:3000/", {});

socket.on("connect", () => {
console.log(`connect ${socket.id}`);
});

socket.on("disconnect", () => {
console.log("disconnect");
});
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Platform:**
- Device: [e.g. Samsung S8]
- OS: [e.g. Android 9.2]

**Additional context**
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a Question
url: https://github.com/socketio/socket.io/discussions/new?category=q-a
about: Ask the community for help
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,10 @@
* [ ] a code change that improves performance
* [ ] other

### Current behaviour
### Current behavior


### New behaviour
### New behavior


### Other information (e.g. related issues)
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -10,5 +10,5 @@ benchmarks/*.png
node_modules
coverage
.idea
dist
.nyc_output
.nyc_output
dist/
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

Loading