commit | 85d693df4061096a93142a0b64ae136d76eae4bc | [log] [tgz] |
---|---|---|
author | MichaelMorris <michael.morris@est.tech> | Mon Dec 12 12:01:58 2022 +0000 |
committer | MichaelMorris <michael.morris@est.tech> | Mon Dec 12 12:02:03 2022 +0000 |
tree | 87f708556338412edd27f185ade463cfef4e2c59 | |
parent | 87cb0ef8396f7e47c91e9e10570daa40cba0496f [diff] |
Update INFO.yaml Removed André Schmid as he has stepped down as committer Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4304 Change-Id: I781f2371858dd47ed9e691294e55e91c918ca62e
sdc-pubsub npm package.
Installing using npm:
npm install sdc-pubsub
import {PluginPubSub} from 'sdc-pubsub'
<!-- index.html --> <script src="./node_modules/sdc-pubsub/dist/sdc-pubsub.js"></script>
// script.js var pubsub = window.sdcPubSub.PluginPubSub;
// eventsClientId = client id to be used by the event bus, received from query params // parentUrl = event bus location url for communication, received from query params // eventsToWaitFor = list of events names that the event hub should wait for their completion. // the client should send an "ACTION_COMPLETED" event to the hub in order to notify the event hub to continue with the flow. // For example: [ “CHECK_IN” ] var client = new PluginPubSub('eventsClientId, parentUrl, eventsToWaitFor')
client.notify(“READY”)
// When lisetning to event we have to specify the specific event we want to act once it being received. // eventData.type will hold the event name that was notified by someone else client.on((eventData,event) => { if(eventData.type == ”WINDOW_OUT”) { //do logic } } )
None.
None.
Copyright 2018 AT&T, Inc.
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0