Use Apache Thrift NodeJS Client over HTTP

2019-06-07 02:11发布

Is there any clean way to connect a NodeJS Apache Thrift client to a Thrift Servlet over HTTP? I've tried implementing this by replacing the Connection with an http.ClientRequest object, then binding to the connect event on the underlying socket and re-emitting this from the client request object so that Thrift will send the queued bytes, but this ultimately results in parsing errors.

Is there any clean way to use HTTP for a NodeJS Thrift client right now?

0条回答
登录 后发表回答