diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-02-23 08:51:04 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 18:51:04 -0500 |
commit | 8b646e8657309e57bd4e907f911529e33e3a05fb (patch) | |
tree | 372d96b4863bf5821638790b1bc2236e31575afa /std/examples/README.md | |
parent | fb98556d56d0defa325fab1296077627cce31aab (diff) |
Added browser chat example (#4022)
Diffstat (limited to 'std/examples/README.md')
-rw-r--r-- | std/examples/README.md | 10 |
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. |