(chat-ws-fn)
Establish websocket connection with server
Establish websocket connection with server
(chat-ws-onmessage-fn event)
Onmessage websocket event receive message
Onmessage websocket event receive message
(close-connection-if-user-left-chat)
Close connection if user left chat page
Close connection if user left chat page
(close-connection-ws-fn)
Closes websocket connection with server
Closes websocket connection with server
(establish-chat-connection-ws-fn event)
Onopen websocket event save reference to websocket object
Onopen websocket event save reference to websocket object
(generate-chat-history chat-history)
Generate html of chat history
Generate html of chat history
(get-chat-history)
Get chat history for selected user and logged in user
Get chat history for selected user and logged in user
(get-selected-chat-contact)
Returns value of selected option in user select html element
Returns value of selected option in user select html element
(initialize-media-recorder)
Initialize media recorder
Initialize media recorder
(scroll-chat-to-bottom)
Scrolls chat content to bottom
Scrolls chat content to bottom
(selected-contact-username)
On every contact username change read chat history and initialize media recorder
On every contact username change read chat history and initialize media recorder
(send-audio-chunk-ws audio-chunk)
Sends audio chunk through websocket
Sends audio chunk through websocket
(send-chat-message-on-enter evt-p element event)
Send chat message on enter
Send chat message on enter
(send-chat-message-ws evt-p element event)
Send chat message to contact
Send chat message to contact
(start-streaming)
Start streaming audio to selected username
Start streaming audio to selected username
(stop-streaming)
Stop streaming audio to selected user
Stop streaming audio to selected user
(websocket-default-close event)
Default close of websocket
Default close of websocket
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close