server for my chess game
Diffstat (limited to 'src/ping.js')
-rw-r--r--src/ping.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ping.js b/src/ping.js
new file mode 100644
index 0000000..6a531a2
--- /dev/null
+++ b/src/ping.js
@@ -0,0 +1,14 @@
+const https = require("https");
+
+const options = {
+ hostname: "gd-chess-server.herokuapp.com",
+ port: 443,
+ method: "GET",
+};
+
+module.exports = {
+ self_ping: function ping() {
+ const ping = https.request(options);
+ ping.end();
+ },
+};