1.0.8 • Published 4 years ago

@geksorg/pubsub-custom v1.0.8

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

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago