FreeBSD.software
Home/devel/rubygem-event_stream_parser

rubygem-event_stream_parser

1.0.0devel

Spec-compliant event stream parser

event_stream_parser is a lightweight, fully spec-compliant parser for the event stream format. It only deals with the parsing of events and not any of the client/transport aspects. This is not a Server-sent Events (SSE) client. Under the hood, it's a stateful parser that receives chunks (that are received from an HTTP client, for example) and emits events as it parses them. But it remembers the last event id and reconnection time and keeps emitting them as long as they are not overwritten by new ones. BOM stripping is left as a responsibility of the chunk provider.

$pkg install rubygem-event_stream_parser
github.com/Shopify/event_stream_parser
Origin
devel/rubygem-event_stream_parser
Size
13.3KiB
License
MIT
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
2 packages

Dependencies (2)

Required By (2)