Liking cljdoc? Tell your friends :D

clojure.browser.net

Network communication library, wrapping goog.net. Includes a common API over XhrIo, CrossPageChannel, and Websockets.

Network communication library, wrapping goog.net.
Includes a common API over XhrIo, CrossPageChannel, and Websockets.
raw docstring

*timeout*cljs


event-typescljs


IConnectioncljsprotocol

connectcljs

(connect this)
(connect this opt1)
(connect this opt1 opt2)
(connect this opt1 opt2 opt3)

closecljs

(close this)

transmitcljs

(transmit this opt)
(transmit this opt opt2)
(transmit this opt opt2 opt3)
(transmit this opt opt2 opt3 opt4)
(transmit this opt opt2 opt3 opt4 opt5)

ICrossPageChannelcljsprotocol

register-servicecljs

(register-service this service-name fn)
(register-service this service-name fn encode-json?)

xhr-connectioncljs

(xhr-connection)

Returns an XhrIo connection

Returns an XhrIo connection
raw docstring

xpc-config-fieldscljs


xpc-connectioncljs

(xpc-connection)
(xpc-connection config)

When passed with a config hash-map, returns a parent CrossPageChannel object. Keys in the config hash map are downcased versions of the goog.net.xpc.CfgFields enum keys, e.g. goog.net.xpc.CfgFields.PEER_URI becomes :peer_uri in the config hash.

When passed with no args, creates a child CrossPageChannel object, and the config is automatically taken from the URL param 'xpc', as per the CrossPageChannel API.

When passed with a config hash-map, returns a parent
CrossPageChannel object. Keys in the config hash map are downcased
versions of the goog.net.xpc.CfgFields enum keys,
e.g. goog.net.xpc.CfgFields.PEER_URI becomes :peer_uri in the config
hash.

When passed with no args, creates a child CrossPageChannel object,
and the config is automatically taken from the URL param 'xpc', as
per the CrossPageChannel API.
raw docstring

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

× close