Hi @mtun009,
Good question! I believe you should be able to simply call:
stream.abort();
That syntax feels a bit confusing to me, but that’s what the code seems to indicate. ( https://github.com/spark/particle-api-js/blob/master/src/EventStream.js )
I hope that helps!
Thanks,
David