choke
Function call throttling with hook for cancelling
Example
var choke = var EventSource = var setInterval = setInterval var source = "http://localhost:1234/events"var reconnect = sourceonopen = reconnectcancel // kill any outstanding reconnect attempts
Installation
npm install choke
Contributors
- Matt-Esch