In the code activity collection, save the latest file path and cursor position. When the next collection arrives, check the current data against the previous data. If the file path and cursor haven't changed, simply drop the event and do not send it to the socket, as the user hasn't made any changes.
In the code activity collection, save the latest file path and cursor position. When the next collection arrives, check the current data against the previous data. If the file path and cursor haven't changed, simply drop the event and do not send it to the socket, as the user hasn't made any changes.