
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
pump-chat-client
Advanced tools
A WebSocket client library for connecting to pump.fun token chat rooms. This library handles the socket.io protocol communication and provides an easy-to-use interface for reading chat messages.
npm install pump-chat-client
import { PumpChatClient } from 'pump-chat-client';
// Create a new client instance
const client = new PumpChatClient({
roomId: 'YOUR_TOKEN_ADDRESS',
username: 'your-username',
messageHistoryLimit: 100
});
// Set up event listeners
client.on('connected', () => {
console.log('Connected to pump.fun chat!');
});
client.on('message', (message) => {
console.log(`${message.username}: ${message.message}`);
});
client.on('messageHistory', (messages) => {
console.log(`Received ${messages.length} historical messages`);
});
client.on('error', (error) => {
console.error('Chat error:', error);
});
client.on('disconnected', () => {
console.log('Disconnected from chat');
});
// Connect to the chat room
client.connect();
// Send a message (requires authentication)
client.sendMessage('Hello everyone!');
// Get stored messages
const messages = client.getMessages(10); // Get last 10 messages
const latestMessage = client.getLatestMessage();
// Disconnect when done
client.disconnect();
interface PumpChatClientOptions {
roomId: string; // Token address/room ID
username?: string; // Username (default: 'anonymous')
messageHistoryLimit?: number; // Max messages to store (default: 100)
}
connected - Emitted when successfully connectedmessage - Emitted when a new message is receivedmessageHistory - Emitted when message history is receivederror - Emitted on connection or protocol errorsserverError - Emitted on server-side errorsdisconnected - Emitted when disconnecteduserLeft - Emitted when a user leaves the chatmaxReconnectAttemptsReached - Emitted after max reconnection attemptsconnect() - Connect to the chat roomdisconnect() - Disconnect from the chat roomsendMessage(message: string) - Send a message (requires authentication)getMessages(limit?: number) - Get stored messagesgetLatestMessage() - Get the most recent messageisActive() - Check if connectedinterface IMessage {
id: string;
roomId: string;
username: string;
userAddress: string;
message: string;
profile_image: string;
timestamp: string;
messageType: string;
expiresAt: number;
}
Note: Sending messages requires authentication with pump.fun. You need to be logged in to pump.fun in a browser and have valid session cookies. Reading messages works without authentication.
MIT
FAQs
WebSocket client for connecting to pump.fun token chat rooms
We found that pump-chat-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.