Members
neighbors
Returns our ALPHA closest neighbors
Name | Type | Description |
---|---|---|
neighbors | Array.<Bucket~contact> |
- Source
Methods
hasNeighborSubscribedTo(topic) → {boolean}
Check if our neighbors are subscribed to the topic
Name | Type | Description |
---|---|---|
topic | string | Topic to check subscription |
- Source
- Type:
- boolean
isSubscribedTo(topic) → {boolean}
Check if we are subscribed to the topic
Name | Type | Description |
---|---|---|
topic | string | Topic to check subscription |
- Source
- Type:
- boolean
pullFilterFrom(contact, callback)
Requests the attenuated bloom filter from the supplied contact
Name | Type | Description |
---|---|---|
contact | Bucket~contact | |
callback | function |
- Source
pullFilters(callbackopt)
Requests neighbor bloom filters and merges with our records
Name | Type | Attributes | Description |
---|---|---|---|
callback | function | <optional> |
- Source
pushFilters(callbackopt)
Notifies neighbors that our subscriptions have changed
Name | Type | Attributes | Description |
---|---|---|---|
callback | function | <optional> |
- Source
pushFilterTo(contact, callback)
Sends our attenuated bloom filter to the supplied contact
Name | Type | Description |
---|---|---|
contact | Bucket~contact | |
callback | function |
- Source
quasarPublish(topic, contents, optionsopt, callbackopt)
Publishes the content to the network by selecting ALPHA contacts closest to the node identity (or the supplied routing key). Errors if message is unable to be delivered to any contacts. Tries to deliver to ALPHA contacts until exhausted.
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
topic | string | Identifier for subscribers | |||||||||
contents | object | Arbitrary publication payload | |||||||||
options | object | <optional> | Properties
| ||||||||
callback | QuasarPlugin~quasarPublishCallback | <optional> |
- Source
quasarSubscribe(topics, handler)
Publishes the content to the network
Name | Type | Description |
---|---|---|
topics | string | | Identifier for subscribers |
handler | QuasarPlugin~quasarSubscribeHandler |
- Source