
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@ixo/oracles-events
Advanced tools
@ixo/oracles-eventsTable of Contents
The @ixo/oracles-events package provides a robust, event-driven system for real-time communication throughout the ixo Oracles platform. It uses a combination of EventEmitter2 for internal event handling and socket.io for WebSocket-based client communication.
Key features:
connectionId, sessionId, and requestIdEvents are ideal for:
pnpm install @ixo/oracles-events
Create a new event by extending BaseEvent with your payload type:
import { BaseEvent, WithRequiredEventProps } from '@ixo/oracles-events';
interface IMyCustomEventPayload {
message: string;
// Add any custom payload properties
}
export class MyCustomEvent extends BaseEvent<IMyCustomEventPayload> {
static readonly eventName = 'my.custom.event';
public readonly eventName = MyCustomEvent.eventName;
constructor(public payload: WithRequiredEventProps<IMyCustomEventPayload>) {
super();
}
}
Required Payload Properties Every event payload must include:
connectionId: Identifies the WebSocket connectionsessionId: Identifies the chat sessionrequestId: Identifies the specific request within a sessionRegister your event in graph-event-emitter.ts:
import { Socket } from 'socket.io';
import { MyCustomEvent } from './events/my-custom.event';
export class GraphEventEmitter {
static registerEventHandlers(server: Socket): void {
MyCustomEvent.registerEventHandlers(server);
// Register other events...
}
}
Emit your event from any server-side code:
const event = new MyCustomEvent({
connectionId: 'ws-connection-id',
sessionId: 'chat-session-id',
requestId: 'message-request-id',
message: 'Hello from custom event!',
});
event.emit();
The package includes several core events:
Each core event is designed for a specific use case and follows the same pattern as custom events.
The package provides test utilities in test-utils.ts to help test event implementations:
import { createTestEvent } from '@ixo/oracles-events/test-utils';
describe('MyCustomEvent', () => {
it('should emit with correct payload', () => {
const event = createTestEvent(MyCustomEvent, {
message: 'test message',
});
// Add your test assertions
});
});
To contribute:
BaseEventImportant Notes:
Thank you for using @ixo/oracles-events!
FAQs
Events for QiForge
The npm package @ixo/oracles-events receives a total of 152 weekly downloads. As such, @ixo/oracles-events popularity was classified as not popular.
We found that @ixo/oracles-events demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.