server for my chess game
Diffstat (limited to 'src/ping.js')
-rw-r--r--src/ping.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ping.js b/src/ping.js
index 6a531a2..15cfdfa 100644
--- a/src/ping.js
+++ b/src/ping.js
@@ -1,4 +1,4 @@
-const https = require("https");
+import { request } from "https";
const options = {
hostname: "gd-chess-server.herokuapp.com",
@@ -6,9 +6,7 @@ const options = {
method: "GET",
};
-module.exports = {
- self_ping: function ping() {
- const ping = https.request(options);
- ping.end();
- },
+export const self_ping = function ping() {
+ const ping = request(options);
+ ping.end();
};