Comments (2)
Hi,
What is it that doesn't work?
Do you get any kind of error message?
There is no need to call createSession for every iteration. Call it once, and then use the session.
const session = ping.createSession({ timeout: 1000 })
setInterval(() => {
session.pingHost('8.8.8.8', (error, target) => {
// more code
});
},2000);
You write "why its not pinging every time I call this."
Does that mean that it works sometimes?
from node-net-ping.
It was a stupid mistake by me, unrelated to the library.
from node-net-ping.
Related Issues (20)
- Can't create IPv6 session on macOS HOT 4
- Documentation could be clearer HOT 1
- Can you surport ping Domain ? HOT 1
- Getting Error with code from docs HOT 2
- Operation not permitted HOT 1
- Output's body on Windows does not necessary contains 'ms' words HOT 2
- Expected handling of RedirectReceivedError
- Cannot ping IPv4 ip's with port's HOT 2
- Unable to install net-ping HOT 2
- npm install net-ping crashing HOT 3
- Permission denied to create raw sockets in Linux ubuntu HOT 1
- Refer for Ping Statistics as No OF packets sent and received HOT 1
- Typo? HOT 1
- pingHost sometimes not running
- After "promisifying" net-ping resolve fire after timeout and not immediately HOT 1
- Random raw-socket error
- Unable to execute net-ping HOT 1
- Is there a 2 seccond delay? HOT 1
- Ping not working on Ping Redirect (Type 5)
- npm install fails in April 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-net-ping.