Liking cljdoc? Tell your friends :D
ClojureScript only.

cljs-web3-next.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
raw 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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close