Liking cljdoc? Tell your friends :D

rt.basic.server-basic


*env*clj


+encode+clj


create-basic-serverclj

(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?
raw docstring

get-encodingclj

(get-encoding encode)

gets the encoding to use

(get-encoding :json) => map?

gets the encoding to use

(get-encoding :json)
=> map?
raw docstring

get-portclj

(get-port {:keys [lang id]})
(get-port lang id env)

gets the port given lang and id

gets the port given lang and id
raw docstring

get-relayclj

(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
raw docstring

get-serverclj

(get-server id lang)

gets a server given id

(get-server "test" :lua) => map?

gets a server given id

(get-server "test" :lua)
=> map?
raw docstring

ping-relayclj

(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 docstring

raw-eval-basic-serverclj

(raw-eval-basic-server {:keys [state encode] :as record} body & [timeout])

performs raw eval

performs raw eval
raw docstring

run-basic-serverclj

(run-basic-server {:keys [port]} state ready)

runs a basic socket server

runs a basic socket server
raw docstring

start-serverclj

(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?
raw docstring

stop-serverclj

(stop-server id lang)

stops a server

(loop [] (if (stop-server "test" :lua) (recur)))

stops a server

(loop []
  (if (stop-server "test" :lua)
   (recur)))
raw docstring

wait-readyclj

(wait-ready {:keys [lang id]})
(wait-ready lang id)

wait until server is ready

wait until server is ready
raw docstring

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

× close