mercure_client library

Provide a quick way to publish and consume messages on Mercure

Classes

Mercure
Wrapper around http.Request.
MercureEvent
A class that allows building a MercureEvent from Server-Sent-Events.

Exceptions / Errors

MercureContentTypeException
Exception when response return unexpected content type header.
MercureEventException
Exception when server returned malformed event.
MercureEventSourceException
Exception when connection with event source failed.
MercureException
Exception that will skill retry feature.
MercureRequestException
Exception that will be thrown if topics list is empty or uri is malformed.
MercureResponseException
Exception when response failed with bad status code.