|
1 | 1 | # Releases
|
2 | 2 |
|
| 3 | +- [0.2.0](#020-2022-10-11) (2022-10-11) |
3 | 4 | - [0.1.1](#011-2022-09-14) (2022-09-14)
|
4 | 5 | - [0.1.0](#010-2022-09-12) (2022-09-12)
|
5 | 6 |
|
| 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 | + |
6 | 68 | # [0.1.1](https://github.com/socketio/socket.io-deno/compare/0.1.0...0.1.1) (2022-09-14)
|
7 | 69 |
|
8 | 70 | ### Bug Fixes
|
|
0 commit comments