Liking cljdoc? Tell your friends :D

clojure.core.server

Socket server support

Socket server support
raw docstring

*session*clj

source

replclj

(repl)

REPL with predefined hooks for attachable socket server.

REPL with predefined hooks for attachable socket server.
sourceraw docstring

repl-initclj

(repl-init)

Initialize repl in user namespace and make standard repl requires.

Initialize repl in user namespace and make standard repl requires.
sourceraw docstring

repl-readclj

(repl-read request-prompt request-exit)

Enhanced :read hook for repl supporting :repl/quit.

Enhanced :read hook for repl supporting :repl/quit.
sourceraw docstring

start-serverclj

(start-server opts)

Start a socket server given the specified opts: :address Host or address, string, defaults to loopback address :port Port, integer, required :name Name, required :accept Namespaced symbol of the accept function to invoke, required :args Vector of args to pass to accept function :bind-err Bind err to socket out stream?, defaults to true :server-daemon Is server thread a daemon?, defaults to true :client-daemon Are client threads daemons?, defaults to true Returns server socket.

Start a socket server given the specified opts:
 :address Host or address, string, defaults to loopback address
 :port Port, integer, required
 :name Name, required
 :accept Namespaced symbol of the accept function to invoke, required
 :args Vector of args to pass to accept function
 :bind-err Bind *err* to socket out stream?, defaults to true
 :server-daemon Is server thread a daemon?, defaults to true
 :client-daemon Are client threads daemons?, defaults to true
Returns server socket.
sourceraw docstring

start-serversclj

(start-servers system-props)

Start all servers specified in the system properties.

Start all servers specified in the system properties.
sourceraw docstring

stop-serverclj

(stop-server)
(stop-server name)

Stop server with name or use the server-name from session if none supplied. Returns true if server stopped successfully, nil if not found, or throws if there is an error closing the socket.

Stop server with name or use the server-name from *session* if none supplied.
Returns true if server stopped successfully, nil if not found, or throws if
there is an error closing the socket.
sourceraw docstring

stop-serversclj

(stop-servers)

Stop all servers ignores all errors, and returns nil.

Stop all servers ignores all errors, and returns nil.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close