metarhia/metalog

WriteBuffer

Closed this issue · 0 comments

  • If message.length <= buffer.freeSize : Add message to buffer, do not emit data, start timeout
  • If message.length > buffer.freeSize : Concatenate message and buffer, emit, remove timeout