-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include features from Socket.IO v4
The codebase is now written in TypeScript. Additional features: - https://socket.io/docs/v4/migrating-from-3-x-to-4-0/#Allow-excluding-specific-rooms-when-broadcasting - https://socket.io/docs/v4/migrating-from-3-x-to-4-0/#Additional-utility-methods - https://socket.io/docs/v4/migrating-from-3-x-to-4-0/#Typed-events BREAKING CHANGE: the "redis" package is not installed by default anymore, you'll now need to create your own redis client and pass it to the Emitter constructor Before: ```js const io = require("socket.io-emitter")({ host: "127.0.0.1", port: 6379 }); ``` After: ```js const { Emitter } = require("socket.io-emitter"); const { createClient } = require("redis"); const redisClient = createClient(); const io = new Emitter(redisClient); ``` Related: - #89 - #90 - #95
- Loading branch information
1 parent
ad920e4
commit a70db12
Showing
12 changed files
with
2,828 additions
and
926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
dist/ | ||
.nyc_output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '2.0' | ||
services: | ||
redis: | ||
image: redis:5 | ||
ports: | ||
- "6379:6379" |
Oops, something went wrong.