@alpic80/rivet-core 1.24.2-aidon.2 → 1.24.2-aidon.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23073,10 +23073,14 @@ data: ${JSON.stringify(data)}
23073
23073
  return new ReadableStream({
23074
23074
  async start(controller) {
23075
23075
  const userEventHandler = async (eventName, data) => {
23076
- sendEvent(controller, "event", {
23077
- name: eventName,
23078
- message: coerceType(data, "string")
23079
- });
23076
+ const graphEvent = {
23077
+ type: "event",
23078
+ graphEvent: {
23079
+ name: eventName,
23080
+ message: coerceType(data, "string")
23081
+ }
23082
+ };
23083
+ sendEvent(controller, "event", graphEvent);
23080
23084
  };
23081
23085
  const streamEvents = createOnStreamUserEvents(spec.userStreamEvents, userEventHandler);
23082
23086
  if (streamEvents) {