Liking cljdoc? Tell your friends :D

net.resp.node


*active*clj


action-evalclj

(action-eval handler [cmd & args])

creates result from an action

(action-eval nil ["PING"]) => [:string "PONG"]

(action-eval (fn [k args] [:write (apply str args)]) ["WRITE" 1 2 3]) => [:write "123"]

creates result from an action 

(action-eval nil ["PING"])
=> [:string "PONG"]

(action-eval (fn [k args]
               [:write (apply str args)])
             ["WRITE" 1 2 3])
=> [:write "123"]
raw docstring

action-writeclj

(action-write conn [tag value])

writes an action to the connection

(action-write |conn| [:write ["PING"]]) => nil

(wire/coerce (wire/read |conn|) :string) => "PONG"

writes an action to the connection

(action-write |conn| [:write ["PING"]])
=> nil

(wire/coerce (wire/read |conn|) :string)
=> "PONG"
raw docstring

handle-commandclj

(handle-command conn transact handler input)

handles a command call

handles a command call
raw docstring

handle-execclj

(handle-exec conn transact handler)

handles a call to perform transaction

handles a call to perform transaction
raw docstring

handle-loopclj

(handle-loop conn transact handler)

performs a loop call

performs a loop call
raw docstring

handle-multiclj

(handle-multi conn transact)

handles a call to start transaction

(cc/req |conn| ["MULTI"]) => "OK"

(cc/req |conn| ["PING"]) => "QUEUED"

(cc/req |conn| ["PING"]) => "QUEUED"

(cc/req |conn| ["EXEC"]) => ["PONG" "PONG"]

handles a call to start transaction

(cc/req |conn| ["MULTI"])
=> "OK"

(cc/req |conn| ["PING"])
=> "QUEUED"

(cc/req |conn| ["PING"])
=> "QUEUED"

(cc/req |conn| ["EXEC"])
=> ["PONG" "PONG"]
raw docstring

handle-singleclj

(handle-single conn transact handler)
(handle-single conn transact handler close)

performs a single call

performs a single call
raw docstring

start-nodeclj

(start-node handler port)
(start-node handler port {:keys [single] :as opts})

starts the remote node

starts the remote node
raw docstring

stop-nodeclj

(stop-node {:keys [thread server executor] :as node})

stops the remote node

stops the remote node
raw docstring

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

× close