To test with the Deno Echo Server, open a shell window:
$ deno --allow-net https://deno.land/std/examples/echo_server.ts
Listening on 0.0.0.0:8080
Open another shell window:
$ deno --allow-env --allow-net test.ts
Connecting to 127.0.0.1:8080 ...
hello
hello
world
world
^C
Hit ctrl-c
or ctrl-d
to stop.
deno --allow-env --allow-net test.ts --help
syntax: deno --allow-env --allow-net test.ts host port
© 2020 Horace Ho