- nrepl port #!key host backlog spawnprocedure
Listen to TCP port port number and (blockingly) wait for incoming connections. The host and backlog parameters are passed to tcp-listen. (spawn) is called for each incomming connection without arguments where current-input-port, current-output-port and current-error-port are bound to the TCP connection. spawn defaults to creating a new srfi-18 thread and printing a welcome message.
You can use tcp-addresses and tcp-port-numbers to find out where the new session is coming from.
nrepl will loop for accepting incomming connections unless spawn returns #f.