Liking cljdoc? Tell your friends :D

petrol.core


EventSourcecljsprotocol

watch-channelscljs

(watch-channels message app)
source

forwardcljs

(forward f from)

Apply a function to every element that goes into a channel.

(This is contramap for channels).

Apply a function to every element that goes into a channel.

(This is contramap for channels).
sourceraw docstring

Messagecljsprotocol

process-messagecljs

(process-message message app)

Given a message, take the current app state and return the new one. In essense this is a reducing function.

Given a message, take the current app state and
return the new one. In essense this is a reducing
function.
source

process-submessagecljs

(process-submessage submessage app path)
source

send!cljs

(send! channel message)

Send information from the user to the message queue. The message must be a record which implements the Message protocol.

Send information from the user to the message queue.
The message must be a record which implements the Message protocol.
sourceraw docstring

send-key!cljs

(send-key! channel message-fn filter-fn)

Send information from the user to the message queue.

Similar to send-value!, except the dom-event's which property retrieves the keycode, and an additional filter function can be supplied by the caller to control which keycodes are sent on the queue.

The filterfn returns the keycode if it should be sent, or nil if not.

Send information from the user to the message queue.

 Similar to `send-value!`, except the dom-event's `which` property retrieves the keycode,
and an additional filter function can be supplied by the caller to control which keycodes
are sent on the queue.

The filterfn returns the keycode if it should be sent, or nil if not.
sourceraw docstring

send-value!cljs

(send-value! channel message-fn)

Send information from the user to the message queue.

Similar to send!, except the message-fn will be called with the message's value first.

Send information from the user to the message queue.

Similar to `send!`, except the message-fn will be called with the message's value first.
sourceraw docstring

start-message-loop!cljs

(start-message-loop! !app render-fn)
(start-message-loop! !app render-fn initial-channels)
source

watch-subchannelscljs

(watch-subchannels submessage app path wrapper)
source

wrapcljs

(wrap f in)

Apply a function to every element that comes out of a channel.

(This is fmap for channels).

Apply a function to every element that comes out of a channel.

(This is fmap for channels).
sourceraw docstring

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

× close