MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / register

Method register

nodedb/src/control/server/http/routes/subscribe.rs:92–97  ·  view source on GitHub ↗

Register a new subscription.

(&self)

Source from the content-addressed store, hash-verified

90
91 /// Register a new subscription.
92 pub fn register(&self) -> u64 {
93 let id = self.next_id.fetch_add(1, Ordering::Relaxed);
94 self.active.fetch_add(1, Ordering::Relaxed);
95 debug!(id, "subscription registered");
96 id
97 }
98
99 /// Unregister a subscription (client disconnected).
100 pub fn unregister(&self, id: u64) {

Callers 9

broadcast_to_all_coresFunction · 0.45
broadcast_rawFunction · 0.45
register_sessionMethod · 0.45
handle_frameMethod · 0.45
dispatch_plan_with_traceFunction · 0.45
subscription_lifecycleFunction · 0.45

Calls

no outgoing calls

Tested by 1

subscription_lifecycleFunction · 0.36