MCPcopy Create free account
hub / github.com/VisActor/vchart-mcp-server / storeEvent

Method storeEvent

src/utils/InMemoryEventStore.ts:38–42  ·  view source on GitHub ↗

* Stores an event with a generated event ID * Implements EventStore.storeEvent

(streamId: string, message: JSONRPCMessage)

Source from the content-addressed store, hash-verified

36 * Implements EventStore.storeEvent
37 */
38 async storeEvent(streamId: string, message: JSONRPCMessage): Promise<string> {
39 const eventId = this.generateEventId(streamId);
40 this.events.set(eventId, { streamId, message });
41 return eventId;
42 }
43
44 /**
45 * Replays events that occurred after a specific event ID

Callers

nothing calls this directly

Calls 1

generateEventIdMethod · 0.95

Tested by

no test coverage detected