Liking cljdoc? Tell your friends :D

common-server.core


action-allowed?clj

(action-allowed? request request-body allow-action-routing)

Check if action is allowed to user

Check if action is allowed to user
sourceraw docstring

action-allowed?-memoclj

source

chat-websocket-set-aclj

source

chat-wsclj

(chat-ws websocket)

Connect to websocket

Connect to websocket
sourceraw docstring

get-allowed-actionsclj

(get-allowed-actions request)

Get allowed actions for logged in user

Get allowed actions for logged in user
sourceraw docstring

get-allowed-actions-memoclj

source

get-allowed-actions-responseclj

(get-allowed-actions-response request)

Get allowed actions for logged in user response

Get allowed actions for logged in user response
sourceraw docstring

get-chat-historyclj

(get-chat-history usernames)

Get chat history for particular users

Get chat history for particular users
sourceraw docstring

get-chat-usersclj

(get-chat-users)

Get chat users

Get chat users
sourceraw docstring

get-websocket-output-fnclj

(get-websocket-output-fn username)

Checks if there is open websocket for particular username if there is websocket and it is open return websocket-output-fn if there is websocket and it's closed or there is no websocket for particular username return nil

Checks if there is open websocket for particular username
if there is websocket and it is open return websocket-output-fn
if there is websocket and it's closed or there is no websocket
 for particular username return nil
sourceraw docstring

not-foundclj

(not-found response-routing request)

If response-routing is nil return 404 not found

If response-routing is nil return 404 not found
sourceraw docstring

remove-websocket-from-setclj

(remove-websocket-from-set username)

Removes websocket for particular username from set

Removes websocket for particular username from set
sourceraw docstring

routingclj

(routing request
         &
         [response-routing allow-action-routing response-routing-not-logged-in])

Routing function

Routing function
sourceraw docstring

save-chat-messageclj

(save-chat-message {usernames :usernames message :message})

Save chat message to database

Save chat message to database
sourceraw docstring

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

× close