Loop Engine

Packages

Adapter Http

@loop-engine/adapter-http

HTTP webhook EventBus adapter.

Install

1npm install @loop-engine/adapter-http

API reference

httpEventBus

1httpEventBus(options: {
2 webhookUrl: string
3 headers?: Record<string, string>
4 retries?: number
5}): EventBus
  • emit() sends JSON payloads to webhookUrl.
  • subscribe() throws: WebhookEventBus does not support subscribe.

Usage

1import { httpEventBus } from '@loop-engine/adapter-http'
2 
3const bus = httpEventBus({
4 webhookUrl: 'https://hooks.example.com/loop-events',
5 retries: 3
6})
  • Depends on runtime + events
  • Use when external systems only need push delivery