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 @@ You can receive callbacks at the EventEmitter and can use the same object format
26
26
Server side
27
27
28
28
``` bash
29
- $ deno run --allow-net https://deno.land/x/websocket@v0.1.2 /example/server.ts
29
+ $ deno run --allow-net https://deno.land/x/websocket@v0.1.3 /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.1.2 /example/client.ts
35
+ $ deno run --allow-net https://deno.land/x/websocket@v0.1.3 /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 { WebSocketClient , WebSocketServer } from " https://deno.land/x/websocket@v0.1.2 /mod.ts" ;
45
+ import { WebSocketClient , WebSocketServer } from " https://deno.land/x/websocket@v0.1.3 /mod.ts" ;
46
46
47
47
const wss = new WebSocketServer (8080 );
48
48
wss .on (" connection" , function (ws : WebSocketClient ) {
@@ -57,7 +57,7 @@ wss.on("connection", function (ws: WebSocketClient) {
57
57
Client side
58
58
59
59
``` typescript
60
- import { WebSocketClient , StandardWebSocketClient } from " https://deno.land/x/websocket@v0.1.2 /mod.ts" ;
60
+ import { WebSocketClient , StandardWebSocketClient } from " https://deno.land/x/websocket@v0.1.3 /mod.ts" ;
61
61
const endpoint = " ws://127.0.0.1:8080" ;
62
62
const ws: WebSocketClient = new StandardWebSocketClient (endpoint );
63
63
ws .on (" open" , function () {
You can’t perform that action at this time.
0 commit comments