Liking cljdoc? Tell your friends :D

flyer.messaging

Includes all of the desired messaging functions

Includes all of the desired messaging functions
raw docstring

broadcastcljs

(broadcast &
           {:keys [data channel topic target]
            :or {data (:data default-message)
                 channel (:channel default-message)
                 topic (:topic default-message)
                 target :all}
            :as param})

broadcast message to currently active frames

broadcast message to currently active frames
sourceraw docstring

create-broadcast-listenercljs

(create-broadcast-listener callback)
(create-broadcast-listener window callback)

used to subscribe to the messages being broadcasted

used to subscribe to the messages being broadcasted
sourceraw docstring

default-callbackcljs

(default-callback data topic channel)

default callback for testing

default callback for testing
sourceraw docstring

default-messagecljs

default message structure

default message structure
sourceraw docstring

default-windowcljs

the main window needs to be localized, so that it can be referenced

the main window needs to be localized, so that it can be
referenced
sourceraw docstring

like-this-channel?cljs

(like-this-channel? msg-channel callback-channel)
source

like-this-flyer?cljs

(like-this-flyer? msg-topic
                  msg-channel
                  msg-origin
                  callback-topic
                  callback-channel
                  callback-origin)

determines if the callback should be called based on the channel and the topic

determines if the callback should be called based on the channel
and the topic
sourceraw docstring

like-this-origin?cljs

(like-this-origin? msg-origin callback-origin)
source

like-this-topic?cljs

(like-this-topic? msg-topic callback-topic)

Checks if the given topic matches, and if it fails, attempts to match the callback's topic to the msg topic as though it were a regular expression

Checks if the given topic matches, and if it fails, attempts to
match the callback's topic to the msg topic as though it were a
regular expression
sourceraw docstring

subscribecljs

(subscribe &
           {:keys [window channel topic callback origin]
            :or {window default-window
                 channel (:channel default-message)
                 topic (:topic default-message)
                 callback default-callback
                 origin :all}
            :as sub})

subscribe to broadcast messages

subscribe to broadcast messages
sourceraw docstring

window-post-messagecljs

(window-post-message window msg)
(window-post-message window msg target)

performs the window postback

performs the window postback
sourceraw docstring

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

× close