socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

sendBuffer should be accessible

Open SwathingBlock opened this issue 2 years ago • 0 comments

The sendBuffer has a few issues.

  1. The buffer is essentially unlimited, so any message emited will ultimately be put on this buffer, meaning that it will potentially have a ridiculous amount of events. Ideally there should be a way to define a limit to this buffer with a FIFO policy.
  2. Buffer limit aside, there should be a way to clear this buffer, there are use cases where the user may need to implement his own queue because the queue on the Socket is too simple of an implementation, in which case the user may want to a short lived buffer by using the existing socket buffer but this queue may need to be cleared after a certain amount of time based on the user requirements.

SwathingBlock avatar Aug 04 '23 14:08 SwathingBlock