(add-users reg room-id users)
Add users to a room in a registry
Add users to a room in a registry
(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
(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
(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
(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
(create-room! reg-atom id sf vf)
Create a room in a registry atom
Create a room in a registry atom
(empty-room-registry max-rooms)
Create an empty room registry with a given limit
Create an empty room registry with a given limit
(get-room reg room-id)
Get a room from a registry by id
Get a room from a registry by id
(get-room! reg-atom room-id)
Get a room in a registry atom
Get a room in a registry atom
(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
(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
(get-users! reg-atom id)
Get a vector of the users in a room
Get a vector of the users in a room
(remove-all-users reg room-id)
Remove all users from a room in a registry
Remove all users from a room in a registry
(remove-all-users! reg-atom id)
Remove all the users from a room
Remove all the users from a room
(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
(remove-room! reg-atom room-id)
Remove a room in a registry atom
Remove a room in a registry atom
(remove-users reg room-id users)
Remove users from a room in a registry
Remove users from a room in a registry
(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
(rooms-at-max? reg)
Return whether a registry is equal its max room count
Return whether a registry is equal its max room count
(send-raw-msg reg room-id msg)
Send an anonymous message to a room
Send an anonymous message to a room
(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
(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
(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
(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)
(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
(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)
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close