
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@sofya-sdk/core
Advanced tools
Core WebSocket client for EventRooms messaging with auto-reconnection.
pnpm add @sofya-sdk/core
import { EventRoomsClient } from '@sofya-sdk/core';
const client = new EventRoomsClient({
url: 'wss://messaging.sofya.app/ws',
roomId: 'ROOM123',
role: 'desktop', // or 'mic'
autoReconnect: true,
maxReconnectAttempts: 5,
});
// Connect
client.connect();
// Listen to events
client.on('transcription', (payload) => {
console.log('Transcription:', payload);
});
// Listen to presence
client.onPresence((presence) => {
console.log('Clients in room:', presence.clientsLocal);
});
// Listen to errors
client.onError((error) => {
console.error('Error:', error.message);
});
// Listen to connection state
client.onConnectionState((state) => {
console.log('State:', state);
});
// Send events
client.sendEvent('transcription', { text: 'Hello', partial: false });
// Disconnect
client.disconnect();
new EventRoomsClient(config: EventRoomsConfig)
Config:
url (string) - WebSocket URLroomId (string) - Room IDrole ('desktop' | 'mic') - Client roleautoReconnect (boolean, optional) - Auto-reconnect on disconnect (default: true)maxReconnectAttempts (number, optional) - Max reconnection attempts (default: 5)reconnectDelay (number, optional) - Initial reconnection delay in ms (default: 1000)maxReconnectDelay (number, optional) - Max reconnection delay in ms (default: 30000)connect() - Connect to EventRoomsdisconnect() - Disconnect from EventRoomssendEvent(event, payload) - Send custom eventon(event, handler) - Listen to event (returns unsubscribe function)onError(handler) - Listen to errors (returns unsubscribe function)onPresence(handler) - Listen to presence updates (returns unsubscribe function)onConnectionState(handler) - Listen to connection state changes (returns unsubscribe function)getConnectionState() - Get current connection stategetRoomId() - Get room IDgetRole() - Get client roleISC
FAQs
Core WebSocket client for EventRooms messaging
We found that @sofya-sdk/core 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.