Liking cljdoc? Tell your friends :D

rooms.core


add-usersclj

(add-users reg room-id users)

Add users to a room in a registry

Add users to a room in a registry
sourceraw docstring

add-users!clj

(add-users! reg-atom room-id users)

Add users to a room in a registry atom

Add users to a room in a registry atom
sourceraw docstring

await-room!clj

(await-room! reg-atom id)

Wait until a room's agent has processed all messages from this thread

Wait until a room's agent has processed all messages from this thread
sourceraw docstring

connect!clj

(connect! reg-atom room-id user request encoding)

Add a user to a room in a registry and establish a WebSocket channel via HttpKit (https://www.http-kit.org) through which messages are received from the user and room states (filtered by their view-fn) are sent to the user

Add a user to a room in a registry and establish a WebSocket channel via HttpKit (https://www.http-kit.org) through which messages are received from the user and room states (filtered by their view-fn) are sent to the user
sourceraw docstring

create-roomclj

(create-room reg room-id sf vf)

Create a room in a registry given an id, state function, and view function

Create a room in a registry given an id, state function, and view function
sourceraw docstring

create-room!clj

(create-room! reg-atom id sf vf)

Create a room in a registry atom

Create a room in a registry atom
sourceraw docstring

empty-room-registryclj

(empty-room-registry max-rooms)

Create an empty room registry with a given limit

Create an empty room registry with a given limit
sourceraw docstring

get-roomclj

(get-room reg room-id)

Get a room from a registry by id

Get a room from a registry by id
sourceraw docstring

get-room!clj

(get-room! reg-atom room-id)

Get a room in a registry atom

Get a room in a registry atom
sourceraw docstring

get-userclj

(get-user reg room-id user-id)

Get a user by id in a room in a registry

Get a user by id in a room in a registry
sourceraw docstring

get-user!clj

(get-user! reg-atom room-id user-id)

Get a user in a room in a registry atom

Get a user in a room in a registry atom
sourceraw docstring

get-users!clj

(get-users! reg-atom id)

Get a vector of the users in a room

Get a vector of the users in a room
sourceraw docstring

remove-all-usersclj

(remove-all-users reg room-id)

Remove all users from a room in a registry

Remove all users from a room in a registry
sourceraw docstring

remove-all-users!clj

(remove-all-users! reg-atom id)

Remove all the users from a room

Remove all the users from a room
sourceraw docstring

remove-roomclj

(remove-room reg room-id)

Remove a room from a registry with a given id

Remove a room from a registry with a given id
sourceraw docstring

remove-room!clj

(remove-room! reg-atom room-id)

Remove a room in a registry atom

Remove a room in a registry atom
sourceraw docstring

remove-usersclj

(remove-users reg room-id users)

Remove users from a room in a registry

Remove users from a room in a registry
sourceraw docstring

remove-users!clj

(remove-users! reg-atom room-id user-ids)

Remove users from a room in a registry atom

Remove users from a room in a registry atom
sourceraw docstring

rooms-at-max?clj

(rooms-at-max? reg)

Return whether a registry is equal its max room count

Return whether a registry is equal its max room count
sourceraw docstring

send-raw-msgclj

(send-raw-msg reg room-id msg)

Send an anonymous message to a room

Send an anonymous message to a room
sourceraw docstring

send-raw-msg!clj

(send-raw-msg! reg-atom room-id msg)

Send an anonymous message to a room in a registry atom

Send an anonymous message to a room in a registry atom
sourceraw docstring

send-user-msgclj

(send-user-msg reg room-id user-id msg)

Send a message from a user to a room

Send a message from a user to a room
sourceraw docstring

send-user-msg!clj

(send-user-msg! reg-atom room-id user-id msg)

Send a message from a user to a room in a registry atom

Send a message from a user to a room in a registry atom
sourceraw docstring

unwatch-roomclj

(unwatch-room reg room-id key)

Remove a watch with a given key from a room's state agent (see https://clojuredocs.org/clojure.core/remove-watch)

Remove a watch with a given key from a room's state agent (see https://clojuredocs.org/clojure.core/remove-watch)
sourceraw docstring

unwatch-room!clj

(unwatch-room! reg-atom room-id key)

Remove a watch from a room in a registry atom

Remove a watch from a room in a registry atom
sourceraw docstring

watch-roomclj

(watch-room reg room-id key cb)

Add a watch to the state agent for a room given its ID and a watcher key (see https://clojuredocs.org/clojure.core/add-watch)

Add a watch to the state agent for a room given its ID and a watcher key (see https://clojuredocs.org/clojure.core/add-watch)
sourceraw docstring

watch-room!clj

(watch-room! reg-atom room-id key cb)

Add a watch to a room in a registry atom

Add a watch to a room in a registry atom
sourceraw docstring

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

× close