You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-44
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,10 @@ Related packages:
37
37
npm install @socket.io/mongo-adapter mongodb
38
38
```
39
39
40
-
For TypeScript users, you might also need `@types/mongodb`.
41
-
42
40
## Usage
43
41
42
+
Broadcasting packets within a Socket.IO cluster is achieved by creating MongoDB documents and using a [change stream](https://docs.mongodb.com/manual/changeStreams/) on each Socket.IO server.
43
+
44
44
There are two ways to clean up the documents in MongoDB:
45
45
46
46
- a [capped collection](https://www.mongodb.com/docs/manual/core/capped-collections/)
@@ -49,72 +49,61 @@ There are two ways to clean up the documents in MongoDB:
0 commit comments