v0.44.0
🚀 Event-Source Ping Interval
New feature to keep Event Iterator alive.
RPCHandler
periodically sends a ping comment to the client. You can configure this behavior using the following options:
eventSourcePingEnabled
(default:true
) – Enables or disables pings.eventSourcePingInterval
(default:5000
) – Time between pings (in milliseconds).eventSourcePingContent
(default:''
) – Custom content for ping messages.
const result = await handler.handle(request, {
eventSourcePingEnabled: true,
eventSourcePingInterval: 5000, // 5 seconds
eventSourcePingContent: '',
})
🚨 Breaking Changes
- Update standard server - by @unnoq in #179 (cc4cb)
- client, server: Update event-source errors and decode behavior - by @unnoq in #182 (92faa)