summaryrefslogtreecommitdiff
path: root/std/examples/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/README.md')
-rw-r--r--std/examples/README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/std/examples/README.md b/std/examples/README.md
index 4f12f2a02..ea85da542 100644
--- a/std/examples/README.md
+++ b/std/examples/README.md
@@ -10,7 +10,7 @@ bookmark to a program.)
### A TCP echo server
```shell
-deno https://deno.land/std/examples/echo_server.ts --allow-net
+deno --allow-net https://deno.land/std/examples/echo_server.ts
```
Or
@@ -51,3 +51,11 @@ deno install --allow-net --allow-env gist https://deno.land/std/examples/gist.ts
gist --title "Example gist 1" script.ts
gist --t "Example gist 2" script2.ts
```
+
+### chat - WebSocket chat server and browser client
+
+```shell
+deno --allow-net --allow-read https://deno.land/std/examples/chat/server.ts
+```
+
+Open http://localhost:8080 on the browser.