Skip to content

Commit 7624147

Browse files
chore(release): 0.2.0
Diff: 0.1.1...0.2.0
1 parent ec07bed commit 7624147

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,70 @@
11
# Releases
22

3+
- [0.2.0](#020-2022-10-11) (2022-10-11)
34
- [0.1.1](#011-2022-09-14) (2022-09-14)
45
- [0.1.0](#010-2022-09-12) (2022-09-12)
56

7+
# [0.2.0](https://github.com/socketio/socket.io-deno/compare/0.1.1...0.2.0) (2022-10-11)
8+
9+
### Bug Fixes
10+
11+
- **engine:** properly pause the polling transport during upgrade
12+
([c706741](https://github.com/socketio/socket.io-deno/commit/c706741544e33ca364ef88e3779aa8d4ee3739f0)),
13+
closes [#4](https://github.com/socketio/socket.io-deno/issues/4)
14+
- restore socket.to() and socket.except() methods
15+
([4ce5f64](https://github.com/socketio/socket.io-deno/commit/4ce5f646a95d9dd522fdf3c86951f82d641e3418)),
16+
closes [#3](https://github.com/socketio/socket.io-deno/issues/3)
17+
- **server:** send events once the handshake is completed
18+
([518f534](https://github.com/socketio/socket.io-deno/commit/518f534e1c205b746b1cb21fe76b187dabc96f34))
19+
20+
### Features
21+
22+
- implement catch-all listeners
23+
([333dfdd](https://github.com/socketio/socket.io-deno/commit/333dfdd8d0f8a3409e2f22a765b775f77fb05d85))
24+
25+
Syntax:
26+
27+
```js
28+
io.on("connection", (socket) => {
29+
socket.onAnyIncoming((event, ...args) => {
30+
// ...
31+
});
32+
33+
socket.onAnyOutgoing((event, ...args) => {
34+
// ...
35+
});
36+
});
37+
```
38+
39+
- implement the Redis adapter
40+
([39eaa0e](https://github.com/socketio/socket.io-deno/commit/39eaa0e755cf16d7b099711c5ff759290103bfd3))
41+
42+
```js
43+
import { serve } from "https://deno.land/[email protected]/http/server.ts";
44+
import {
45+
createRedisAdapter,
46+
createRedisClient,
47+
Server,
48+
} from "https://deno.land/x/[email protected]/mod.ts";
49+
50+
const [pubClient, subClient] = await Promise.all([
51+
createRedisClient({
52+
hostname: "localhost",
53+
}),
54+
createRedisClient({
55+
hostname: "localhost",
56+
}),
57+
]);
58+
59+
const io = new Server({
60+
adapter: createRedisAdapter(pubClient, subClient),
61+
});
62+
63+
await serve(io.handler(), {
64+
port: 3000,
65+
});
66+
```
67+
668
# [0.1.1](https://github.com/socketio/socket.io-deno/compare/0.1.0...0.1.1) (2022-09-14)
769

870
### Bug Fixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Table of content:
2424

2525
```ts
2626
import { serve } from "https://deno.land/[email protected]/http/server.ts";
27-
import { Server } from "https://deno.land/x/socket_io@0.1.1/mod.ts";
27+
import { Server } from "https://deno.land/x/socket_io@0.2.0/mod.ts";
2828

2929
const io = new Server();
3030

0 commit comments

Comments
 (0)