UrbitEx.Reducer (UrbitEx v0.6.5) View Source

Module containing the default functions to handle SSE events sent from the Urbit ship. Some events are sent to the Session process to keep the state of the session, e.g. lists of groups, channels, unreads, notifications, etc. All events are sent to subscribers of the channel calling this reducer module, either in parsed or raw form.

Link to this section Summary

Functions

Single public function of the module, called by the Channel process. It keeps track of sse and action id, sends errors to the channel subscribes, and most importantly parses and routes json events to use in client apps using this library.

Link to this section Functions

Single public function of the module, called by the Channel process. It keeps track of sse and action id, sends errors to the channel subscribes, and most importantly parses and routes json events to use in client apps using this library.