Skip to content

Commit 7521ac2

Browse files
chore(release): @socket.io/[email protected]
1 parent b00124b commit 7521ac2

19 files changed

+46
-10
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ Here are the detailed changelogs for each package in this monorepo:
1010
| `socket.io` | [link](packages/socket.io/CHANGELOG.md) |
1111
| `socket.io-adapter` | [link](packages/socket.io-adapter/CHANGELOG.md) |
1212
| `socket.io-client` | [link](packages/socket.io-client/CHANGELOG.md) |
13+
| `@socket.io/cluster-engine` | [link](packages/socket.io-cluster-engine/CHANGELOG.md) |
1314
| `@socket.io/component-emitter` | [link](packages/socket.io-component-emitter/History.md) |
1415
| `socket.io-parser` | [link](packages/socket.io-parser/CHANGELOG.md) |

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ This repository is a [monorepo](https://en.wikipedia.org/wiki/Monorepo) which co
7878
| `socket.io` | The server-side implementation of the bidirectional channel, built on top on the `engine.io` package. |
7979
| `socket.io-adapter` | An extensible component responsible for broadcasting a packet to all connected clients, used by the `socket.io` package. |
8080
| `socket.io-client` | The client-side implementation of the bidirectional channel, built on top on the `engine.io-client` package. |
81+
| `@socket.io/cluster-engine` | A cluster-friendly engine to share load between multiple Node.js processes (without sticky sessions) |
8182
| `@socket.io/component-emitter` | An `EventEmitter` implementation, similar to the one provided by [Node.js](https://nodejs.org/api/events.html) but for all platforms. |
8283
| `socket.io-parser` | The parser responsible for encoding and decoding Socket.IO packets, used by both the `socket.io` and `socket.io-client` packages. |
8384

package-lock.json

+17-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"packages/socket.io-component-emitter",
55
"packages/engine.io-parser",
66
"packages/engine.io",
7-
"packages/socket.io-clustered-engine",
7+
"packages/socket.io-cluster-engine",
88
"packages/engine.io-client",
99
"packages/socket.io-adapter",
1010
"packages/socket.io-parser",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# History
2+
3+
| Version | Release date |
4+
|--------------------------|--------------|
5+
| [0.1.0](#010-2024-07-17) | July 2024 |
6+
7+
# Release notes
8+
9+
## `0.1.0` (2024-07-17)
10+
11+
Initial release!

packages/socket.io-clustered-engine/README.md packages/socket.io-cluster-engine/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Socket.IO clustered engine
1+
# Socket.IO cluster engine
22

33
A cluster-friendly engine to share load between multiple Node.js processes (without sticky sessions).
44

55
**Table of contents**
66

77
<!-- TOC -->
8+
* [Installation](#installation)
89
* [Usage](#usage)
910
* [Node.js cluster](#nodejs-cluster)
1011
* [Redis](#redis)
@@ -14,6 +15,14 @@ A cluster-friendly engine to share load between multiple Node.js processes (with
1415
* [License](#license)
1516
<!-- TOC -->
1617

18+
## Installation
19+
20+
```
21+
npm i @socket.io/cluster-engine
22+
```
23+
24+
NPM: https://npmjs.com/package/@socket.io/cluster-engine
25+
1726
## Usage
1827

1928
### Node.js cluster
@@ -22,7 +31,7 @@ A cluster-friendly engine to share load between multiple Node.js processes (with
2231
import cluster from "node:cluster";
2332
import process from "node:process";
2433
import { availableParallelism } from "node:os";
25-
import { setupPrimary, NodeClusterEngine } from "@socket.io/clustered-engine";
34+
import { setupPrimary, NodeClusterEngine } from "@socket.io/cluster-engine";
2635
import { createServer } from "node:http";
2736
import { Server } from "socket.io";
2837

@@ -74,7 +83,7 @@ if (cluster.isPrimary) {
7483
```js
7584
import { createServer } from "node:http";
7685
import { createClient } from "redis";
77-
import { RedisEngine } from "@socket.io/clustered-engine";
86+
import { RedisEngine } from "@socket.io/cluster-engine";
7887
import { Server } from "socket.io";
7988

8089
const httpServer = createServer((req, res) => {
@@ -109,7 +118,7 @@ import cluster from "node:cluster";
109118
import process from "node:process";
110119
import { availableParallelism } from "node:os";
111120
import { createClient } from "redis";
112-
import { setupPrimaryWithRedis, NodeClusterEngine } from "@socket.io/clustered-engine";
121+
import { setupPrimaryWithRedis, NodeClusterEngine } from "@socket.io/cluster-engine";
113122
import { createServer } from "node:http";
114123
import { Server } from "socket.io";
115124

packages/socket.io-clustered-engine/package.json packages/socket.io-cluster-engine/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@socket.io/clustered-engine",
3-
"version": "0.0.1",
2+
"name": "@socket.io/cluster-engine",
3+
"version": "0.1.0",
44
"description": "A cluster-friendly engine to share load between multiple Node.js processes (without sticky sessions)",
55
"type": "commonjs",
66
"license": "MIT",

0 commit comments

Comments
 (0)