expose icon indicating copy to clipboard operation
expose copied to clipboard

Support WebSocket connections

Open bosunski opened this issue 1 year ago • 1 comments

bosunski avatar Jul 21 '24 15:07 bosunski

PR Summary

  • Improvements on HttpClient In the HttpClient file, changes allow the sendRequest application to now return the response object. In addition, the getBody() call is now type-hinted as DuplexStreamInterface, which provides a way to check if data is writable before establishing a connection.

  • Refinements in ProxyManager The ProxyManager file now incorporates the ResponseInterface from Psr\Http\Message. A new localRequestConnection variable is introduced and the required logic to handle it. There's also an enhanced mechanism for sending data through the proxy connection.

  • New Method in HttpConnection A new method, getConnection(), was added in HttpConnection file. This method centres around returning connection socket, thereby improving the efficiency of the server communication.

  • Data Sending functionality in TunnelMessageController In the TunnelMessageController file, an addition of a data event listener has been made to the httpConnection’s connection, paving the way for easier data transmission to the proxy.

  • Dependencies Update Finally, in the composer.json file, the version of the react/http package has been updated. A new dependency repository, https://github.com/phpsandbox/http, has also been added. This tune-up in dependencies helps to ensure that the application remains stable and secure with the latest libraries.

what-the-diff[bot] avatar Jul 21 '24 15:07 what-the-diff[bot]

@mpociot Does closing this PR mean that Websocket support is/will be merged or that it won't?

markdegrootnl avatar Feb 18 '25 14:02 markdegrootnl