(edn-> e)
EDN to 'uri', converts edn string to map, extract :action key
EDN to 'uri', converts edn string to map, extract :action key
(json-> j)
JSON to 'uri', converts json string to map, extract :action key
JSON to 'uri', converts json string to map, extract :action key
(router routes state)
(router routes
msg->uri
{{income-msg :income-msg fallback :fallback} :request-data :as state})
Router for webSockets. Parameters: routes: reitit routes msg->uri: function makes routing base from message. If missing tries to solve message as json, edn and string state: xiana state record
Router for webSockets. Parameters: routes: reitit routes msg->uri: function makes routing base from message. If missing tries to solve message as json, edn and string state: xiana state record
(string-> s)
String to 'uri', uses the first word as action key
String to 'uri', uses the first word as action key
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close