Includes all of the desired messaging functions
Includes all of the desired messaging functions
(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
(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
(default-callback data topic channel)
default callback for testing
default callback for testing
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
(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
(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
(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
(window-post-message window msg)
(window-post-message window msg target)
performs the window postback
performs the window postback
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close