A WebSocket client library (v1.0.1) for connecting to pump.fun token chat rooms using the Socket.IO protocol. It provides real-time chat message streaming with automatic reconnection (exponential backoff), message history management, and an event-driven API via EventEmitter. Fully typed with TypeScript definitions. Key differentiator: abstracts pump.fun's proprietary socket.io protocol into a simple client interface for reading and sending chat messages. Suitable for integration into Solana-based trading bots and analytics dashboards.
npm install pump-chat-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a pump.fun token chat room, listens for new messages, retrieves recent messages, and disconnects.
Ensure the client is running in a browser context with active pump.fun session, or pass session tokens via headers (not yet supported).
Use import syntax or set type: module in package.json.
Pin socket.io-client to the version compatible with the server (currently v4.x).
npm install pump-chat-client && ensure tsconfig.json has moduleResolution: 'node'.
Correct to: import { PumpChatClient } from 'pump-chat-client'Verify network connectivity and that the WebSocket URL is correct (handled internally).