Packages
@loop-engine/adapter-http
@loop-engine/adapter-http sends runtime events to an outbound webhook endpoint.
Install
1npm install @loop-engine/adapter-httpEvent bus factory
1httpEventBus(options: {2 webhookUrl: string3 headers?: Record<string, string>4 retries?: number5}): EventBusemit()posts JSON payloads towebhookUrl.- Retries default to
3, with exponential backoff. subscribe()throws because this adapter is push-only.
1import { httpEventBus } from "@loop-engine/adapter-http"2 3const bus = httpEventBus({4 webhookUrl: "https:">//hooks.example.com/loop-events",5 headers: { Authorization: "Bearer webhook-token" },6 retries: 37})Delivery model
Use this adapter for outbound integrations (webhooks, automation tools, monitoring sinks) where event replay is handled outside Loop Engine.