(start-server)
(start-server opts)
Same as clojure.core.server/start-server, but with better defaults. Supports random port, .port-file, and log message when server is started.
Supported options:
:address Host or address, string, defaults to loopback address :port Port, integer, defaults to random port :port-file A file to output port number to. Defaults to ".repl-port" if :port is nil, nil otherwise :start-message? Whether or not to print “REPL started” message. Default to true :name Name, required, defaults to "repl" :accept Namespaced symbol of the accept function to invoke, required. Defaults to clojure.core.server/repl :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 false :client-daemon Are client threads daemons?, defaults to true
Returns server socket.
Same as clojure.core.server/start-server, but with better defaults. Supports random port, .port-file, and log message when server is started. Supported options: :address Host or address, string, defaults to loopback address :port Port, integer, defaults to random port :port-file A file to output port number to. Defaults to ".repl-port" if :port is nil, nil otherwise :start-message? Whether or not to print “REPL started” message. Default to true :name Name, required, defaults to "repl" :accept Namespaced symbol of the accept function to invoke, required. Defaults to clojure.core.server/repl :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 false :client-daemon Are client threads daemons?, defaults to true Returns server socket.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close