Commits

Meikel Brandmeyer  committed 9cc4ee8

Add first stab at nrepl-session

  • Participants
  • Parent commits fc45a5b

Comments (0)

Files changed (1)

File nrepl-client/nrepl-client/nrepl-client.factor

     "\"in\""   print "\"" write dup stdin>> stringify write "\"" print
     flush
     id>> <response> ;
+
+: nrepl-session ( -- )
+    readln lines <message>
+    "localhost" 12345 <inet> utf8 [
+        send-message
+        read-response
+    ] with-client
+    print-response ;