Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-ma authored Aug 15, 2020
1 parent f0acf0a commit 224cb11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
Server side

```bash
$ deno run --allow-net https://deno.land/x/websocket/example/server.ts
$ deno run --allow-net https://deno.land/x/websocket@v0.0.2/example/server.ts
```

Client side

```bash
$ deno run --allow-net https://deno.land/x/websocket/example/client.ts
$ deno run --allow-net https://deno.land/x/websocket@v0.0.2/example/client.ts
ws connected! (type 'close' to quit)
> something
```
Expand All @@ -34,7 +34,7 @@ ws connected! (type 'close' to quit)
Server side

```typescript
import { WebSocket, WebSocketServer } from "https://deno.land/x/websocket/mod.ts";
import { WebSocket, WebSocketServer } from "https://deno.land/x/websocket@v0.0.2/mod.ts";

const wss = new WebSocketServer(8080);
wss.on("connection", function (ws: WebSocket) {
Expand All @@ -49,7 +49,7 @@ wss.on("connection", function (ws: WebSocket) {
Client side

```typescript
import { WebSocket } from "https://deno.land/x/websocket/mod.ts";
import { WebSocket } from "https://deno.land/x/websocket@v0.0.2/mod.ts";
const endpoint = "ws://127.0.0.1:8080";
const ws: WebSocket = new WebSocket(endpoint);
ws.on("open", function() {
Expand Down

0 comments on commit 224cb11

Please sign in to comment.