Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-ma committed Jan 5, 2021
1 parent 4d85e71 commit b08bb4f
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 @@ -26,13 +26,13 @@ https://deno.land/posts/v1.4#websocket-api
Server side

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

Client side

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

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

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

```typescript
import { WebSocket } from "https://deno.land/x/websocket@v0.0.5/mod.ts";
import { WebSocket } from "https://deno.land/x/websocket@v0.0.6/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 b08bb4f

Please sign in to comment.