Skip to content

Commit b00124b

Browse files
feat: implement cluster-friendly engine
1 parent b7da542 commit b00124b

File tree

17 files changed

+2139
-1
lines changed

17 files changed

+2139
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
- 18
2222
- 20
2323

24+
services:
25+
redis:
26+
image: redis:7
27+
options: >-
28+
--health-cmd "redis-cli ping"
29+
--health-interval 10s
30+
--health-timeout 5s
31+
--health-retries 5
32+
ports:
33+
- 6379:6379
34+
2435
steps:
2536
- name: Checkout repository
2637
uses: actions/checkout@v4

package-lock.json

Lines changed: 202 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"packages/socket.io-component-emitter",
55
"packages/engine.io-parser",
66
"packages/engine.io",
7+
"packages/socket.io-clustered-engine",
78
"packages/engine.io-client",
89
"packages/socket.io-adapter",
910
"packages/socket.io-parser",
@@ -47,10 +48,12 @@
4748
"express-session": "^1.18.0",
4849
"has-cors": "^1.1.0",
4950
"helmet": "^7.1.0",
51+
"ioredis": "^5.4.1",
5052
"mocha": "^10.6.0",
5153
"node-forge": "^1.3.1",
5254
"nyc": "^17.0.0",
5355
"prettier": "^2.8.8",
56+
"redis": "^4.6.15",
5457
"rimraf": "^6.0.0",
5558
"rollup": "^2.79.1",
5659
"rollup-plugin-terser": "^7.0.2",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2024-present Guillermo Rauch and Socket.IO contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)