1.0.8 • Published 3 years ago

@geksorg/pubsub-custom v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago