Skip to content

Commit

Permalink
Merge pull request #161 from sogaiu/netrepl-server-handler-syspath
Browse files Browse the repository at this point in the history
Set syspath in netrepl server handler
  • Loading branch information
bakpakin authored Jan 18, 2024
2 parents e65972c + ed0d7a8 commit 57b0735
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spork/netrepl.janet
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@
(default port default-port)
(eprint "Starting networked repl server on " host ", port " port "...")
(def name-set @{})
(def syspath (dyn :syspath))
(net/server
host port
(fn repl-handler [stream]

# Setup closures and state
(setdyn :syspath syspath)
(var name "<unknown>")
(var last-flush 0)
(def outbuf @"")
Expand Down

0 comments on commit 57b0735

Please sign in to comment.