# gala_launchpad_unsubscribe_from_global_feed_reference

Reference: Unsubscribe from the global feed. IMPORTANT: The global feed is a CLIENT-SIDE feature in the SDK. This tool provides documentation. Unsubscription happens in your client code. When to Unsubscribe Unsubscribe from the global feed when: - Component unmounts (React) - User navigates away - Feature is no longer needed - Application is shutting down - Connection is being closed Unsubscribing launchpad-sdk's StreamWebSocketService holds the subscription (the SDK ships no React hooks for the feed: in React, unsubscribe in your effect's cleanup). typescript import { StreamWebSocketService, getEnvironmentConfig } from '@gala-chain/launchpad-sdk'; const service = new StreamWebSocketService({ url: getEnvironmentConfig('prod').launchpadBaseUrl, }); // Every subscription returns its own unsubscribe. The feed room is left when the LAST one is released. const unsubscribe = service.subscribeToGlobalFeed({ onTradeExecuted: (event) => console.log('Trade:', event), onStreamStatus: (event) => console.log('Stream status:', event), }); // Later, when done with the feed unsubscribe(); console.log('Unsubscribed from global feed'); // And finally, close the connection service.disconnect(); console.log('Disconnected from WebSocket'); In React: typescript useEffect(() => { const unsubscribe = service.subscribeToGlobalFeed(callbacks); return unsubscribe; }, []); Cleanup Sequence Best practice cleanup sequence: typescript // 1. Unsubscribe from global feed (this subscription only) unsubscribe(); // 2. Remove what subscribeToStream registered for a token, if you used it service.unsubscribeFromStream('tokenName'); // 3. Disconnect WebSocket (releases every subscriber, listener and timer) service.disconnect(); Resource Management After unsubscribing: - This subscription's callbacks stop firing; other subscribers of the feed are untouched - The feed room is left once no subscriber needs it - Can still reconnect/resubscribe later if needed Errors and Edge Cases typescript // Safe to call multiple times: the room reference is released once unsubscribe(); unsubscribe(); // No error, no effect // Is any subscriber holding the feed room? service.isSubscribedToGlobalFeed(); // Disconnecting releases everything; the unsubscribe functions you hold stay harmless service.disconnect(); Documentation In the launchpad-sdk source tree (not in the npm package): - Quick Start (5 min): docs/websocket/QUICKSTART.md - Complete Guide: docs/websocket/GLOBAL-FEED.md - Example: examples/global-feed-demo.ts Authentication: None required (public endpoint)

Agent View of the PolicyLayer registry record for `gala_launchpad_unsubscribe_from_global_feed_reference`. HTML page: https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-unsubscribe-from-global-feed-reference

## Facts

- Tool: `gala_launchpad_unsubscribe_from_global_feed_reference`
- Server: Gala (`@gala-chain/gala-mcp-server`) — https://policylayer.com/tools/gala-chain-gala-mcp-server.md
- Install: `npx -y @gala-chain/gala-mcp-server`
- Homepage: https://www.npmjs.com/package/@gala-chain/gala-mcp-server
- Risk category: Destructive (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Hidden

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gala_launchpad_unsubscribe_from_global_feed_reference",
    "arguments": {}
  }
}
```

## Why gala_launchpad_unsubscribe_from_global_feed_reference is rated Critical

An AI agent that decides to call gala_launchpad_unsubscribe_from_global_feed_reference doesn't hesitate, doesn't double-check, and doesn't stop at one. Whatever it removes from Gala is gone. There is no undo for destructive operations.

Risk signals: Bulk/mass operation — affects multiple targets

## Use case

AI agents call gala_launchpad_unsubscribe_from_global_feed_reference to permanently remove resources in Gala, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

## Recommended policy (PolicyLayer)

Verdict: **Hidden**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Gala:

```json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "gala_launchpad_unsubscribe_from_global_feed_reference"
  ]
}
```

## Other tools on Gala (323)

- `gala_launchpad_action_flag` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-action-flag.md
- `gala_launchpad_burn_tokens` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-burn-tokens.md
- `gala_launchpad_clear_cache` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-clear-cache.md
- `gala_launchpad_delete_chat_message` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-delete-chat-message.md
- `gala_launchpad_delete_comment` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-delete-comment.md
- `gala_launchpad_delete_message` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-delete-message.md
- `gala_launchpad_delete_recording` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-delete-recording.md
- `gala_launchpad_estimate_remove_liquidity` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-estimate-remove-liquidity.md
- `gala_launchpad_fetch_bridgeable_tokens_by_network` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-fetch-bridgeable-tokens-by-network.md
- `gala_launchpad_fetch_wrappable_tokens` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-fetch-wrappable-tokens.md
- `gala_launchpad_logout` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-logout.md
- `gala_launchpad_remove_ban` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-ban.md
- `gala_launchpad_remove_content_reaction` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-content-reaction.md
- `gala_launchpad_remove_liquidity` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-liquidity.md
- `gala_launchpad_remove_reaction_from_chat_message` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-reaction-from-chat-message.md
- `gala_launchpad_remove_reaction_from_comment` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-reaction-from-comment.md
- `gala_launchpad_remove_simulcast_target` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-remove-simulcast-target.md
- `gala_launchpad_reset_stream_key` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-reset-stream-key.md
- `gala_launchpad_revoke_api_key` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-revoke-api-key.md
- `gala_launchpad_revoke_moderator_invite` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-revoke-moderator-invite.md
- `gala_launchpad_revoke_overseer` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-revoke-overseer.md
- `gala_launchpad_revoke_overseer_invite` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-revoke-overseer-invite.md
- `gala_launchpad_unban_token` — Destructive — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-unban-token.md
- `gala_launchpad_buy` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-buy.md
- `gala_launchpad_emit_stream_countdown` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-emit-stream-countdown.md
- `gala_launchpad_execute_swap` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-execute-swap.md
- `gala_launchpad_global_feed_reference` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-global-feed-reference.md
- `gala_launchpad_launch_token` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-launch-token.md
- `gala_launchpad_sell` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-sell.md
- `gala_launchpad_site_config_state_reference` — Execute — https://policylayer.com/tools/gala-chain-gala-mcp-server/gala-launchpad-site-config-state-reference.md
- …and 293 more: https://policylayer.com/tools/gala-chain-gala-mcp-server.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=gala-chain-gala-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/gala-chain-gala-mcp-server
