Create nodejs app
Create a new node.js app using the following commands:Build the stream
Now, let’s get to building our stream. In the index.ts file add the following to initialise the client:MERGE_MESSAGE
event. You can check out the full details about the types of events in The Snapchain Events Documentation. So, add the following in your code:
Run the stream in your terminal
Finally, you can run the script usingbun run index.ts
and it will provide you with a stream like this:
