Event Livestream
npm install @graffle/flow-livestream-sdk const clientConfig = {
projectId: '<your project id>',
apiKey: '<your api key>'
};
const streamSDK = new GraffleSDK(clientConfig);
// or `const streamSDK = new GraffleSDK(clientConfig, true);` for test netconst displayEvent = (message) => {
console.log(message);
//display/process the event here
};
useEffect(() => {
streamSDK.stream(displayEvent);
}, []);Last updated
