
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@cloudflare/util-http-poll
Advanced tools
Cloudflare HTTP Polling Util
$ yarn add @cloudflare/util-http-poll
import { Poller } from '@cloudflare/util-http-poll';
const pollingFn = () => {
/* do something fancy */
};
/*
The following options can be configured:
backoffs {Number} - The number of times to backoff and retry
after exceeding timeout before quitting
pollInterval {Number} - The frequency at which to poll
pollTimeout {Number} - The time after which we stop polling and decide what to do next
backoffFn: {Function} - Used to decrease the pollInterval frequency
onError: {Function} - Called when an error is thrown in pollingFn
haltOnError: {Boolean} - Should stop polling if an error is encountered
*/
const options = { pollTimeout: 30 * 1000 };
const poller = new Poller(pollingFn, options);
poller.startPolling();
// When you're done or unmounting:
poller.destroy();
FAQs
Cloudflare HTTP Polling Utilities
The npm package @cloudflare/util-http-poll receives a total of 541 weekly downloads. As such, @cloudflare/util-http-poll popularity was classified as not popular.
We found that @cloudflare/util-http-poll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.