xmpp_p2p
Preparing search index...
core/xmpp-feed
XmppFeedManager
Class XmppFeedManager
Manages local feed history, subscriptions, and follower visibility state.
Index
Constructors
constructor
Properties
feed
History
feed
Subscriptions
followers
follower
Watches
Methods
announce
Public
Subscriptions
For
Peer
close
ensure
Own
Feed
Subscription
ensure
Own
Follower
Subscription
get
Feed
Followers
get
Feed
Posts
get
Feed
Subscription
By
Topic
get
Feed
Subscriptions
get
Followers
For
Peer
get
Public
Feed
Subscriptions
initialize
persist
Feed
History
persist
Follower
State
persist
Subscription
State
publish
Feed
publish
Subscription
Declaration
record
Feed
Post
record
Feed
Subscription
record
Follower
remove
Follower
restore
Feed
Subscriptions
restore
Follower
Subscriptions
schedule
Feed
Persist
schedule
Follower
Persist
schedule
Subscription
Persist
set
Feed
Subscription
Visibility
subscribe
Feed
unsubscribe
Feed
watch
Feed
Followers
watch
Follower
Topic
Constructors
constructor
new
XmppFeedManager
(
ctx
:
XmppFeedContext
)
:
XmppFeedManager
Parameters
ctx
:
XmppFeedContext
Returns
XmppFeedManager
Properties
Readonly
feed
History
feedHistory
:
Map
<
string
,
XmppFeedPost
>
= ...
Readonly
feed
Subscriptions
feedSubscriptions
:
Map
<
string
,
XmppFeedSubscriptionRecord
>
= ...
Readonly
followers
followers
:
Map
<
string
,
XmppFeedFollower
>
= ...
Readonly
follower
Watches
followerWatches
:
Map
<
string
,
XmppFollowerWatch
>
= ...
Methods
announce
Public
Subscriptions
For
Peer
announcePublicSubscriptionsForPeer
(
peerId
:
string
)
:
Promise
<
void
>
Parameters
peerId
:
string
Returns
Promise
<
void
>
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
ensure
Own
Feed
Subscription
ensureOwnFeedSubscription
()
:
Promise
<
void
>
Returns
Promise
<
void
>
ensure
Own
Follower
Subscription
ensureOwnFollowerSubscription
()
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Feed
Followers
getFeedFollowers
(
peerAddr
:
string
|
Multiaddr
)
:
Promise
<
XmppFeedFollower
[]
>
Parameters
peerAddr
:
string
|
Multiaddr
Returns
Promise
<
XmppFeedFollower
[]
>
get
Feed
Posts
getFeedPosts
()
:
Promise
<
XmppFeedPost
[]
>
Returns
Promise
<
XmppFeedPost
[]
>
get
Feed
Subscription
By
Topic
getFeedSubscriptionByTopic
(
topic
:
string
,
)
:
XmppFeedSubscriptionRecord
|
undefined
Parameters
topic
:
string
Returns
XmppFeedSubscriptionRecord
|
undefined
get
Feed
Subscriptions
getFeedSubscriptions
()
:
Promise
<
XmppFeedSubscriptionRecord
[]
>
Returns
Promise
<
XmppFeedSubscriptionRecord
[]
>
get
Followers
For
Peer
getFollowersForPeer
(
peerId
:
string
)
:
XmppFeedFollower
[]
Parameters
peerId
:
string
Returns
XmppFeedFollower
[]
get
Public
Feed
Subscriptions
getPublicFeedSubscriptions
()
:
Promise
<
XmppFeedSubscriptionRecord
[]
>
Returns
Promise
<
XmppFeedSubscriptionRecord
[]
>
initialize
initialize
()
:
Promise
<
void
>
Returns
Promise
<
void
>
persist
Feed
History
persistFeedHistory
()
:
Promise
<
void
>
Returns
Promise
<
void
>
persist
Follower
State
persistFollowerState
()
:
Promise
<
void
>
Returns
Promise
<
void
>
persist
Subscription
State
persistSubscriptionState
()
:
Promise
<
void
>
Returns
Promise
<
void
>
publish
Feed
publishFeed
(
body
:
string
,
options
?:
{
author
?:
string
;
categories
?:
string
[]
;
itemId
?:
string
;
summary
?:
string
;
title
?:
string
;
topic
?:
string
;
}
,
)
:
Promise
<
string
>
Parameters
body
:
string
options
:
{
author
?:
string
;
categories
?:
string
[]
;
itemId
?:
string
;
summary
?:
string
;
title
?:
string
;
topic
?:
string
;
}
= {}
Returns
Promise
<
string
>
publish
Subscription
Declaration
publishSubscriptionDeclaration
(
subscription
:
XmppFeedSubscriptionRecord
,
action
:
"remove"
|
"upsert"
,
)
:
Promise
<
void
>
Parameters
subscription
:
XmppFeedSubscriptionRecord
action
:
"remove"
|
"upsert"
Returns
Promise
<
void
>
record
Feed
Post
recordFeedPost
(
post
:
XmppFeedPost
)
:
Promise
<
boolean
>
Parameters
post
:
XmppFeedPost
Returns
Promise
<
boolean
>
record
Feed
Subscription
recordFeedSubscription
(
subscription
:
XmppFeedSubscriptionRecord
,
announce
?:
boolean
,
)
:
Promise
<
boolean
>
Parameters
subscription
:
XmppFeedSubscriptionRecord
announce
:
boolean
= true
Returns
Promise
<
boolean
>
record
Follower
recordFollower
(
follower
:
XmppFeedFollower
)
:
Promise
<
boolean
>
Parameters
follower
:
XmppFeedFollower
Returns
Promise
<
boolean
>
remove
Follower
removeFollower
(
feedPeerId
:
string
,
followerPeerId
:
string
)
:
Promise
<
void
>
Parameters
feedPeerId
:
string
followerPeerId
:
string
Returns
Promise
<
void
>
restore
Feed
Subscriptions
restoreFeedSubscriptions
()
:
Promise
<
void
>
Returns
Promise
<
void
>
restore
Follower
Subscriptions
restoreFollowerSubscriptions
()
:
Promise
<
void
>
Returns
Promise
<
void
>
schedule
Feed
Persist
scheduleFeedPersist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
schedule
Follower
Persist
scheduleFollowerPersist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
schedule
Subscription
Persist
scheduleSubscriptionPersist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Feed
Subscription
Visibility
setFeedSubscriptionVisibility
(
peerAddr
:
string
|
Multiaddr
,
visibility
:
XmppFeedVisibility
,
)
:
Promise
<
XmppFeedSubscriptionRecord
>
Parameters
peerAddr
:
string
|
Multiaddr
visibility
:
XmppFeedVisibility
Returns
Promise
<
XmppFeedSubscriptionRecord
>
subscribe
Feed
subscribeFeed
(
peerAddr
:
string
|
Multiaddr
,
options
?:
{
visibility
?:
XmppFeedVisibility
}
,
)
:
Promise
<
XmppFeedSubscriptionRecord
>
Parameters
peerAddr
:
string
|
Multiaddr
options
:
{
visibility
?:
XmppFeedVisibility
}
= {}
Returns
Promise
<
XmppFeedSubscriptionRecord
>
unsubscribe
Feed
unsubscribeFeed
(
peerAddr
:
string
|
Multiaddr
)
:
Promise
<
void
>
Parameters
peerAddr
:
string
|
Multiaddr
Returns
Promise
<
void
>
watch
Feed
Followers
watchFeedFollowers
(
peerAddr
:
string
|
Multiaddr
)
:
Promise
<
XmppFollowerWatch
>
Parameters
peerAddr
:
string
|
Multiaddr
Returns
Promise
<
XmppFollowerWatch
>
watch
Follower
Topic
watchFollowerTopic
(
peerId
:
string
)
:
Promise
<
void
>
Parameters
peerId
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
feed
History
feed
Subscriptions
followers
follower
Watches
Methods
announce
Public
Subscriptions
For
Peer
close
ensure
Own
Feed
Subscription
ensure
Own
Follower
Subscription
get
Feed
Followers
get
Feed
Posts
get
Feed
Subscription
By
Topic
get
Feed
Subscriptions
get
Followers
For
Peer
get
Public
Feed
Subscriptions
initialize
persist
Feed
History
persist
Follower
State
persist
Subscription
State
publish
Feed
publish
Subscription
Declaration
record
Feed
Post
record
Feed
Subscription
record
Follower
remove
Follower
restore
Feed
Subscriptions
restore
Follower
Subscriptions
schedule
Feed
Persist
schedule
Follower
Persist
schedule
Subscription
Persist
set
Feed
Subscription
Visibility
subscribe
Feed
unsubscribe
Feed
watch
Feed
Followers
watch
Follower
Topic
xmpp_p2p
Loading...
Manages local feed history, subscriptions, and follower visibility state.