Skip to content

montserat/event-emitter-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync events with emitter to local and remote repo

The implementation of EventHandler (local repo representation) and EventRepository (remote repo representation) is up to you. Main idea is to subscribe to EventEmitter, save it in local stats along with syncing with EventRepository.

The implementation of EventHandler and EventRepository is flexible and left to your discretion. The primary objective is to subscribe to EventEmitter, record the events in .eventStats, and ensure synchronization with EventRepository.

The ultimate aim is to have the .eventStats of EventHandler and EventRepository have the same values (and equal to the amount of actual events fired by the emitter) by the time MAX_EVENTS have been fired.

Run

Check the code first, install deps and the dev command could help you with running the code

Providing results

The best way is to fork this github repo, create pull request with changes and provide a link

About

Simple event emitter data sync task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published