The current implementation of the TCP proxy failed to correctly transfer data back and forth for non HTTP communication. Trying to execute plain TCP use cases with this rendered it unusable and errornous.
Solution
This PR solves this by reimplementing the TCP Proxy logic and providing missing features such as buffering of the communication while waiting for the other endpoints to be fully ready to accept communication.
In addition:
I've added a vanila golem-js example for the TcpProxy feature which was missing
I've renamed the waitForCondition internal helper function to waitFor and exposed this as a utility from golem-js as this is a feature that gets implemented by many requestor scripts on their own.
The problem
The current implementation of the TCP proxy failed to correctly transfer data back and forth for non HTTP communication. Trying to execute plain TCP use cases with this rendered it unusable and errornous.
Solution
This PR solves this by reimplementing the TCP Proxy logic and providing missing features such as buffering of the communication while waiting for the other endpoints to be fully ready to accept communication.
In addition:
waitForCondition
internal helper function towaitFor
and exposed this as a utility fromgolem-js
as this is a feature that gets implemented by many requestor scripts on their own.