UNPKG

@das3mical/adonis-mercure

Version:

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

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