
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.
wiaxy-realtime
Advanced tools
Lightweight WebSocket wrapper with auto-reconnect, heartbeat, events and presence helpers
Lightweight WebSocket wrapper for browser environments.
emit / on semantics using JSON messagesnpm install wiaxy-realtime
import { RealtimeClient } from "wiaxy-realtime";
const client = new RealtimeClient("wss://your-server.example/ws", {
reconnection: { enabled: true, minDelay: 500, maxDelay: 20000 },
heartbeat: { enabled: true, interval: 20000 }
});
client.on('__status', status => console.log('status', status));
client.on('chat.message', (m) => console.log('message', m));
client.on('__connected', () => console.log('connected'));
client.connect();
// emit an event
client.emit('chat.message', { text: 'Hello' });
// emit with ack (returns a Promise)
client.emit('chat.message', { text: 'Please ack me' }, { ack: true, timeout: 5000 })
.then(resp => console.log('ack received', resp))
.catch(err => console.error('ack failed', err));
// presence
client.subscribePresence('room:main', members => {
console.log('room members:', members);
});
client.join('room:main');
This library expects server messages in JSON form such as:
{ "event": "chat.message", "data": { "text": "Hello" } }
Control messages the client understands (you can implement these on server):
{"type":"__pong"} — heartbeat pong{"type":"__clientId", "clientId":"..."}{"type":"__presence", "room":"room", "members":["id1","id2"]}_ackId to request ack callbacks.See index.d.ts for typed API.
MIT
FAQs
Lightweight WebSocket wrapper with auto-reconnect, heartbeat, events and presence helpers
The npm package wiaxy-realtime receives a total of 0 weekly downloads. As such, wiaxy-realtime popularity was classified as not popular.
We found that wiaxy-realtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.