Comments (3)
Hi @Scothosts,
Since this module uses a method of loading an image (favicon.ico by default), it will return an error along with the ping if the image doesn't exist. This was put in place by #15.
https://github.com/alfg/ping.js#notes
from ping.js.
Ah ok, I was actually looking for a client side script that could ping a server which doesn't have web pages, so I don't think this will work. Even if I listen for the error and time the reply this won't differentiate between a dead server and the running server which doesn't have a favicon.ico
from ping.js.
Yes, that's correct. There's no native browser/JS api to do a "ping", so this is more of a hack to load an image over http only to simulate a ping.
from ping.js.
Related Issues (20)
- Not working properly. HOT 1
- Ping failed to return time HOT 1
- code still seems to return requests on timeout HOT 2
- Add travis script for publishing to npm HOT 1
- How to import this package in Javascript(React Js)? HOT 2
- Difficulty with timeout HOT 3
- How to ping proxy server? HOT 1
- ping.js i find a bug why request time first is lower than next time have so big distance HOT 2
- Ping Lib is not recognized HOT 1
- jQuery example not showing ping times HOT 1
- Support for promise? HOT 2
- Better data from HTTP requests HOT 1
- Find a way to set up a proxy(agent) for pings HOT 2
- ping ipaddress HOT 1
- ReferenceError: Image is not defined HOT 3
- How would i change the favicon image and how would i ping a minecraft server HOT 1
- Response times are not correct HOT 4
- Getting RED error in console when no return
- Why do I receive several times ping data?
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 ping.js.