by socketcluster · 9mo ago · 0 comments
Here's the WritableConsumableStream module:
https://github.com/SocketCluster/writable-consumable-stream
SocketCluster solves the problem of maintaining message order with async processing.
This feature is even more useful now with LLMs as you can process data live, transform streams with AI with no risk of mangling the message order.
I may have been the first person to use a for-await-of loop in this way with backpressure. At least on an open source project.
No comments yet.