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 22
22
Server side
23
23
24
24
``` bash
25
- $ deno run --allow-net https://deno.land/x/websocket@v0.1.1 /example/server.ts
25
+ $ deno run --allow-net https://deno.land/x/websocket@v0.1.2 /example/server.ts
26
26
```
27
27
28
28
Client side
29
29
30
30
``` bash
31
- $ deno run --allow-net https://deno.land/x/websocket@v0.1.1 /example/client.ts
31
+ $ deno run --allow-net https://deno.land/x/websocket@v0.1.2 /example/client.ts
32
32
ws connected! (type ' close' to quit)
33
33
> something
34
34
```
@@ -38,7 +38,7 @@ ws connected! (type 'close' to quit)
38
38
Server side
39
39
40
40
``` typescript
41
- import { WebSocketClient , WebSocketServer } from " https://deno.land/x/websocket@v0.1.1 /mod.ts" ;
41
+ import { WebSocketClient , WebSocketServer } from " https://deno.land/x/websocket@v0.1.2 /mod.ts" ;
42
42
43
43
const wss = new WebSocketServer (8080 );
44
44
wss .on (" connection" , function (ws : WebSocketClient ) {
@@ -53,7 +53,7 @@ wss.on("connection", function (ws: WebSocketClient) {
53
53
Client side
54
54
55
55
``` typescript
56
- import { WebSocketClient , StandardWebSocketClient } from " https://deno.land/x/websocket@v0.1.1 /mod.ts" ;
56
+ import { WebSocketClient , StandardWebSocketClient } from " https://deno.land/x/websocket@v0.1.2 /mod.ts" ;
57
57
const endpoint = " ws://127.0.0.1:8080" ;
58
58
const ws: WebSocketClient = new StandardWebSocketClient (endpoint );
59
59
ws .on (" open" , function () {
You can’t perform that action at this time.
0 commit comments