### Start Sockudo Server Source: https://sockudo.io/ Command to start the Sockudo server with a specified configuration file. Shows example output indicating the listening port and readiness for traffic. ```bash $ sockudo --config config.toml [INFO] Listening on :6001 [INFO] Ready for websocket traffic ``` -------------------------------- ### Docker Compose for Sockudo Source: https://sockudo.io/ Use this Docker Compose configuration to start Sockudo on port 6001. It mounts a local config.toml file for customization. ```yaml services: sockudo: image: ghcr.io/sockudo/sockudo:latest ports: ["6001:6001"] volumes: ["./config.toml:/app/config.toml"] ``` -------------------------------- ### Initialize Pusher-JS Client Source: https://sockudo.io/ Example of initializing the pusher-js library to connect to a Sockudo instance. Ensure wsHost and wsPort match your Sockudo server configuration. ```javascript const pusher = new Pusher("app-key", { wsHost: "127.0.0.1", wsPort: 6001, }); ``` -------------------------------- ### Apply Server-Side Tag Filtering Source: https://sockudo.io/ Subscribe to a channel with a filter expression to receive only relevant messages. This example filters for 'trade' events with a price greater than or equal to 100. ```typescript client.subscribe("market", { filter: Filter.and( Filter.eq("event", "trade"), Filter.gte("price", "100"), ), }); ``` -------------------------------- ### Enable Delta Compression in Client Source: https://sockudo.io/ Configure the Sockudo client to enable delta compression for a subscription. Specify the algorithm for efficient bandwidth usage. ```typescript client.subscribe("ticker:btc", { delta: { enabled: true, algorithm: "xdelta3", }, }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.