Skip to main content
Glama
rust_misc.md847 B
# Utility Methods API – Rust SDK (Misc) ## disconnect() Temporarily stop receiving real-time updates. A cursor for the last received message is stored. **Client scope:** `PubNub` object #### Method ```rust pubnub.disconnect() ``` #### Example ```rust pubnub.disconnect(); ``` Returns: `None` --- ## reconnect(cursor: Option<SubscriptionCursor>) Resume real-time updates and attempt message catch-up since the last `disconnect`. * `cursor` • Type: `Option<SubscriptionCursor>` • Structure: `SubscriptionCursor { timetoken: String, region: u32 }` • Pass `None` to skip catch-up. Retrieval is best-effort. **Client scope:** `PubNub` object #### Method ```rust pubnub.reconnect(cursor: Option<SubscriptionCursor>) ``` #### Example ```rust pubnub.reconnect(None); ``` Returns: `None` --- _Last updated: Jul 15, 2025_

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pubnub/pubnub-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server