golemfactory / golem-js

TypeScript + NodeJS API for Golem
https://docs.golem.network/docs/creators/javascript
GNU Lesser General Public License v3.0
29 stars 16 forks source link

Fix TcpProxy for non HTTP communication #1041

Closed grisha87 closed 1 month ago

grisha87 commented 1 month ago

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: