(create-basic-server id lang port encode)
creates a basic server
(create-basic-server "test" :lua nil :json) => map?
creates a basic server (create-basic-server "test" :lua nil :json) => map?
(get-encoding encode)
gets the encoding to use
(get-encoding :json) => map?
gets the encoding to use (get-encoding :json) => map?
(get-port {:keys [lang id]})
(get-port lang id env)
gets the port given lang and id
gets the port given lang and id
(get-relay {:keys [state] :as record})
gets the relay associated with the server
(get-relay (start-server "test" :lua nil)) => nil
gets the relay associated with the server (get-relay (start-server "test" :lua nil)) => nil
(get-server id lang)
gets a server given id
(get-server "test" :lua) => map?
gets a server given id (get-server "test" :lua) => map?
(ping-relay {:keys [state] :as record})
checks if the relay is still valid
(ping-relay (start-server "test" :lua nil)) => false
checks if the relay is still valid (ping-relay (start-server "test" :lua nil)) => false
(raw-eval-basic-server {:keys [state encode] :as record} body & [timeout])
performs raw eval
performs raw eval
(run-basic-server {:keys [port]} state ready)
runs a basic socket server
runs a basic socket server
(start-server id lang port & [f encode])
start server function
(start-server "test" :lua nil) => map?
start server function (start-server "test" :lua nil) => map?
(stop-server id lang)
stops a server
(loop [] (if (stop-server "test" :lua) (recur)))
stops a server (loop [] (if (stop-server "test" :lua) (recur)))
(wait-ready {:keys [lang id]})
(wait-ready lang id)
wait until server is ready
wait until server is ready
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close