A lambda that returns a promise for a EventSource
The ClientConfiguration to apply
A synchronous method to start listening to the stream and handle events using callbacks.
A callback function to handle each event
Optional
onError: ((error: Error) => void)An Optional callback function to handle errors. If none is provided, error will not be handled, and the stream will simply end.
A class to listen to Fauna streams.