UNPKG

@das3mical/adonis-mercure

Version:

Mercure Hub integration for AdonisJS v6 — publish real-time updates via Server-Sent Events (SSE)

9 lines (7 loc) 262 B
import { MercureError } from './mercure_error.js' export class MercureTimeoutError extends MercureError { constructor(readonly timeoutMs: number) { super(`Request to Mercure hub timed out after ${timeoutMs}ms`) this.name = 'MercureTimeoutError' } }