add highwater limit in websocket sender
if maxTotalPendingCount<=0, do not check totalPending