Nym DocsNetworkNetworkDevelopersDevelopersOperatorsOperatorsAPIsAPIs
GitHubGitHub (opens in a new tab)Network ExplorerMatrix Logo
  • Overview
    • Exit Security
    • Message Queue & Cover Traffic

  • Rust
  • smolmix (TCP/UDP tunnel)
  • nym-sdk
    • Tour
    • Installation
    • Mixnet Module
      • Tutorial
      • Examples
      • Troubleshooting
    • Stream Module
      • Tutorial
      • Architecture
      • Examples
    • TcpProxy Module (Deprecated)
    • Client Pool Module
      • Tutorial
      • Examples
    • FFI
  • TypeScript
  • Playground (embedded clients)
  • mix-tunnel (shared tunnel)
    • Get started
    • Reference
      • API Index
        • disconnectMixTunnel
        • getMixTunnel
        • getTunnelState
        • proxy
        • setupMixTunnel
        • IMixTunnelWorker
        • LoadedEvent
        • MixFetchResponseInit
        • SetupMixTunnelOpts
        • TunnelState
        • EventKinds
        • TunnelStateName
        • WsEventCallback
        • WsEventType
  • mix-fetch (HTTPS requests)
    • Get started
    • Reference
    • Concepts & security
    • Migrating from v1.x
      • API Index
        • createMixFetch
        • disconnectMixTunnel
        • getTunnelState
        • mixFetch
        • setupMixTunnel
        • SetupMixTunnelOpts
  • mix-dns (DNS resolution)
    • Get started
    • Reference & security
      • API Index
        • disconnectMixTunnel
        • getTunnelState
        • mixDNS
        • setupMixTunnel
        • SetupMixTunnelOpts
  • mix-websocket (ws / wss)
    • Get started
    • Reference
    • Concepts & security
      • API Index
        • MixWebSocket
        • disconnectMixTunnel
        • getTunnelState
        • setupMixTunnel
        • SetupMixTunnelOpts
        • MixWebSocketReadyState
  • mix-* Family Architecture
  • Raw Messaging SDK
    • Quick Start
    • Smart Contracts
    • Cosmos Kit
      • General
      • ESBuild
      • Webpack
        • API Index
          • createNymMixnetClient
          • BinaryMessageReceivedEvent
          • Client
          • ConnectedEvent
          • Events
          • LoadedEvent
          • NymMixnetClient
          • NymMixnetClientOptions
          • Payload
          • RawMessageReceivedEvent
          • StringMessageReceivedEvent
          • EventKinds
          • MimeTypes
          • EventHandlerFn
          • EventHandlerSubscribeFn
          • EventHandlerUnsubscribeFn

  • Extras
  • Nym VPN CLI
  • Interacting with Nyx Blockchain
    • CLI Wallet
    • Ledger Live
    • Cosmos Registry
    • RPC Nodes
  • Tools
    • Nym-cli
      • Usage
      • Commands
    • Diagnostic Tool
    • TcpProxy Binaries (Standalone)
    • SOCKS Proxy
      • Setup
      • Usage
      • Config
      • Commands
    • Websocket
      • Setup
      • Usage
      • Config
      • Examples
      • Commands
    • WebAssembly Client

    • Nym Connect
  • Licensing
  • Coc
Developers
nym-sdk
Client Pool Module
Examples

Examples

Runnable examples in sdk/rust/nym-sdk/examples/ (opens in a new tab). Each file is self-contained with step-by-step comments.

cargo run --example <name>
ExampleSourceWhat it demonstrates
Client Poolclient_pool.rs (opens in a new tab)Creating a pool of MixnetClients, retrieving clients from the pool, and falling back to ephemeral clients when the pool is empty
TutorialFFI

MIT 2026 © Nextra.