A fif server uses a stack-machine with a set of sessions, which are separate stack-machine instantiations.
A fif server uses a stack-machine with a set of *sessions*, which are separate stack-machine instantiations.
A socket server creates a thread to accept a socket connection. The socket connection is then handled by a new thread with the server's predefined repl-fn.
A socket server creates a thread to accept a socket connection. The socket connection is then handled by a new thread with the server's predefined repl-fn.
(run-server-session {:keys [session-id socket-connection socket-in socket-out
server-session-key server-name server-repl-fn
server-repl-args]})
function to run and evaluate a socket connection session.
function to run and evaluate a socket connection session.
(run-server-socket-instance name)
Accepts new socket connections for the server-socket-instance name
defined in *server-socket-instances
.
Notes:
Accepts new socket connections for the server-socket-instance `name` defined in `*server-socket-instances`. Notes: - new socket connections are managed by a newly generated thread
(start-socket-server
sm
name
&
{:keys [address port repl-fn repl-args]
:or {address "localhost" port 5001 repl-fn repl repl-args []}})
(stop-socket-server)
(stop-socket-server name)
Stops the server instance with the given name
Stops the server instance with the given name
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close