farfromrefug / react-xterm

52 stars 27 forks source link

Buffer the input data to server with a debounce #10

Closed veeramarni closed 6 years ago

veeramarni commented 6 years ago

Question on how to make the frontend server less chatty. Instead of sending every key entered to the backend, how can we buffer the data and send to the backend after every second. Also, we capture certain keystrokes such asenter keyetc. to invoke an action to send the data to the backend server. We also need to make sure the inputted data printed on the UI won't be printed again in the UI if it sends back from the server.

Let me know if you have any thoughts?

farfromrefug commented 6 years ago

@veeramarni you are asking in the wrong repo. this is just a graphic comoonent