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
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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close