perpetualintelligence / terminal

The most flexible cross-platform framework for building modern and secured terminals.
https://www.perpetualintelligence.com/products/piterminal
Other
37 stars 3 forks source link

Tcp rounting need command response stream support #123

Open Nilavarasi-Ashika opened 3 months ago

Nilavarasi-Ashika commented 3 months ago

Need an ability to get command response streaming support in Tcp/ip communication.

E.g., In scenarios where a command takes several minutes to respond, it is necessary to have the ability to display the data collected at each moment, rather than waiting for the entire command execution to complete to receiving the data.

perpetualintelligencegit commented 1 month ago

@Nilavarasi-Ashika : Can you give us an example of long running operation and what kind of data you would stream back, is it simple bytes[], delimited strings. How do we know the streamed checks of data make sense for the application ?

Nilavarasi-Ashika commented 1 month ago

Consider a use case where commands execute long-running operations, such as capturing data (e.g., byte[] format, with data conversion handled before sending) generated at specific intervals. The requirement is to transmit the data to the client immediately as it is captured on the server, rather than waiting for the command execution to complete before sending the response to the client.