Currently when implementing a customized protocol, the $tunnel object can not read data from $session, and the data is blind forwarded to the proxy server.
In many scenarios (for example, implementing an ss client), it is desired to encrypt the data before sending it to the proxy server. Adding this feature will enable support for more complex protocols. Thank you!