source: project/wiki/eggref/4/nrepl @ 30903

Last change on this file since 30903 was 30903, checked in by svnwiki, 6 years ago

Anonymous wiki edit for IP [84.48.92.74]: initial nrepl page

File size: 514 bytes
Line 
1[[toc:]]
2
3== NREPL
4An blocking networked REPL for Chicken Scheme. Each new incoming
5connection runs in a new srfi-18 thread.
6
7
8=== (nrepl <port> [spawn])
9Listen to TCP port <port> and wait for incoming connections, doing
10{{(spawn thunk)}} for each. {{spawn}} defaults to {{thread-start!}}.
11
12
13== Example
14At the very beginning of your application, you can get network REPL access by doing this:
15
16<enscript highlight="scheme">    
17(use nrepl)
18(define repl-thread (thread-start! (lambda () (nrepl 1234))))
19</enscript>
Note: See TracBrowser for help on using the repository browser.