1.0.8 • Published 2 years ago

@geksorg/pubsub-custom v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

The Porject that use contains a PubSub class.

It is based on the Publisher - Subscriber pattern (more documentation here https://oskari.io/blog/event-bus-micro-frontend/)

The PubSub class resumes the key concepts of the PubSub pattern with :

- A subscribe() method that subscribe to a specific event and will be trigger every time the event is published
The method return a function unsubscribe that allows to unsubscribe to the specific event.

- A publish() method that publish event
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago