@thisismissem I didn't know it's a separate Node application, instead of another Rails command.
Given the few files and possibly LoC in streaming/ of the repo, wouldn't this perform even faster with using a compiling language? Probably not worth the effort.
Unfortunately there's no README in that directory, which could help explain what this implementation does and how it is being used.
This link is a bit short on details, but no other place in the docs mentions it
streaming API methods - Mastodon documentation
Subscribe to server-sent events for real-time updates via a long-lived HTTP connection or via WebSocket.
(docs.joinmastodon.org)