Liking cljdoc? Tell your friends :D
ClojureScript only.

cljs-web3.net


listening?cljs

This property is read only and says whether the node is actively listening for network connections or not.

Parameters: callback - callback with two parameters: error and result

Returns true if the client is actively listening for network connections, otherwise false.

Example: user> (listening? (fn [err res] (when-not err (println res)))) nil user> true

This property is read only and says whether the node is actively
listening for network connections or not.

Parameters:
callback - callback with two parameters: error and result

Returns true if the client is actively listening for network connections,
otherwise false.

Example:
user> `(listening? (fn [err res] (when-not err (println res))))`
nil
user> true
sourceraw docstring

peer-countcljs

This property is read only and returns the number of connected peers.

Returns the number of peers currently connected to the client.

Example: user> (peer-count (fn [err res] (when-not err (println res)))) nil user> 4

This property is read only and returns the number of connected peers.

Returns the number of peers currently connected to the client.

Example:
user> `(peer-count (fn [err res] (when-not err (println res))))`
nil
user> 4
sourceraw docstring

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

× close