Skip to content

Commit aed0bc5

Browse files
authored
Update README.md
1 parent 5715d6a commit aed0bc5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
🦕 A simple WebSocket library like [ws of node.js library](https://github.com/websockets/ws) for deno
1111

12+
* Deno >= 1.2
13+
1214
# Quick Start
1315

1416
## Example Demo
@@ -18,13 +20,13 @@
1820
Server side
1921

2022
```bash
21-
$ deno run --allow-net https://deno.land/x/websocket@v0.0.2/example/server.ts
23+
$ deno run --allow-net https://deno.land/x/websocket@v0.0.3/example/server.ts
2224
```
2325

2426
Client side
2527

2628
```bash
27-
$ deno run --allow-net https://deno.land/x/websocket@v0.0.2/example/client.ts
29+
$ deno run --allow-net https://deno.land/x/websocket@v0.0.3/example/client.ts
2830
ws connected! (type 'close' to quit)
2931
> something
3032
```
@@ -34,7 +36,7 @@ ws connected! (type 'close' to quit)
3436
Server side
3537

3638
```typescript
37-
import { WebSocket, WebSocketServer } from "https://deno.land/x/websocket@v0.0.2/mod.ts";
39+
import { WebSocket, WebSocketServer } from "https://deno.land/x/websocket@v0.0.3/mod.ts";
3840

3941
const wss = new WebSocketServer(8080);
4042
wss.on("connection", function (ws: WebSocket) {
@@ -49,7 +51,7 @@ wss.on("connection", function (ws: WebSocket) {
4951
Client side
5052

5153
```typescript
52-
import { WebSocket } from "https://deno.land/x/websocket@v0.0.2/mod.ts";
54+
import { WebSocket } from "https://deno.land/x/websocket@v0.0.3/mod.ts";
5355
const endpoint = "ws://127.0.0.1:8080";
5456
const ws: WebSocket = new WebSocket(endpoint);
5557
ws.on("open", function() {

0 commit comments

Comments
 (0)