Skip to content

Instantly share code, notes, and snippets.

Avatar

René Olavi Räisänen arzmir

View GitHub Profile
@arzmir
arzmir / Poller.js
Last active Jul 5, 2019
Problems with Electron, wait-on package, app.ready, event queue
View Poller.js
const axios = require('axios');
const defaultOptions = {
axiosTimeout: 900,
chosenLogger: console.log,
expectingResponse: true,
pollingInterval: 1000,
startUpDelay: 1000,
timesToPoll: 5,
silent: false,