mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 17:57:17 +00:00
8 lines
194 B
Plaintext
8 lines
194 B
Plaintext
|
(def conn (net/connect "127.0.0.1" "8000"))
|
||
|
(printf "Connected to %q!" conn)
|
||
|
(net/write conn "Echo...")
|
||
|
(print "Wrote to connection...")
|
||
|
(def res (net/read conn 1024))
|
||
|
(pp res)
|
||
|
(net/close conn)
|