Open mauron85 opened 8 years ago
What does this code actually do?
It calls the transforms
method on the Spark
or the client.
That transforms
method runs the registered message transformers and then call SubStream.prototype._write
(see the second argument) with the transformed data.
Hi there,
wondering if it's possible to make primus-callbacks work on a substream? It currently works on main stream and I believe it's only about writing implementation for primus-callbacks
writeAndWait
method.I'll try to implement it myself, but I'm bit lost in how transform works. What does this code actually do?
and when this get invoked?
Thanks