File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ https://deno.land/posts/v1.4#websocket-api
26
26
Server side
27
27
28
28
``` bash
29
- $ deno run --allow-net https://deno.land/x/websocket@v0.0.5 /example/server.ts
29
+ $ deno run --allow-net https://deno.land/x/websocket@v0.0.6 /example/server.ts
30
30
```
31
31
32
32
Client side
33
33
34
34
``` bash
35
- $ deno run --allow-net https://deno.land/x/websocket@v0.0.5 /example/client.ts
35
+ $ deno run --allow-net https://deno.land/x/websocket@v0.0.6 /example/client.ts
36
36
ws connected! (type ' close' to quit)
37
37
> something
38
38
```
@@ -42,7 +42,7 @@ ws connected! (type 'close' to quit)
42
42
Server side
43
43
44
44
``` typescript
45
- import { WebSocket , WebSocketServer } from " https://deno.land/x/websocket@v0.0.5 /mod.ts" ;
45
+ import { WebSocket , WebSocketServer } from " https://deno.land/x/websocket@v0.0.6 /mod.ts" ;
46
46
47
47
const wss = new WebSocketServer (8080 );
48
48
wss .on (" connection" , function (ws : WebSocket ) {
@@ -57,7 +57,7 @@ wss.on("connection", function (ws: WebSocket) {
57
57
Client side
58
58
59
59
``` typescript
60
- import { WebSocket } from " https://deno.land/x/websocket@v0.0.5 /mod.ts" ;
60
+ import { WebSocket } from " https://deno.land/x/websocket@v0.0.6 /mod.ts" ;
61
61
const endpoint = " ws://127.0.0.1:8080" ;
62
62
const ws: WebSocket = new WebSocket (endpoint );
63
63
ws .on (" open" , function () {
You can’t perform that action at this time.
0 commit comments