spork/netrepl/server
spork
function
/usr/local/lib/janet/spork/netrepl.janet on line 114, column 1
(server &opt host port env cleanup welcome-msg)
Start a repl server. The default host is "127.0.0.1" and the
default port is "9365". Calling this will start a TCP server that
exposes a repl into the given env. If no env is provided, a new env
will be created per connection. If env is a function, that function
will be invoked with the name and stream on each connection to
generate an environment. `cleanup` is an optional function that
will be called for each stream after closing if provided.
`welcome-msg` is an optional string or function (welcome-msg
client-name) to generate a message to print for the client on
connection.