summaryrefslogtreecommitdiff
path: root/api.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-18 19:35:36 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-18 19:35:36 +0200
commit273039d6f4a882b4b4665f13a46ee2a3d3b02bcc (patch)
treeca6c175a29f9e2ea4d2468ea4cdfe3d492fd51ef /api.js
parent1805e6d82a54a527323b14f47f31f35967541ce3 (diff)
downloaddiscordbot-273039d6f4a882b4b4665f13a46ee2a3d3b02bcc.tar.gz
discordbot-273039d6f4a882b4b4665f13a46ee2a3d3b02bcc.zip
keepalive
Diffstat (limited to 'api.js')
-rw-r--r--api.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/api.js b/api.js
index 7b38de4..915530b 100644
--- a/api.js
+++ b/api.js
@@ -35,21 +35,24 @@ const notif = webstomp.over(new WebSocket(API_WS_URL,
function getMap(url) {
return request({
uri: API_MAP_URL + url,
- json: true
+ json: true,
+ forever: true
});
}
function getFE(url) {
return request({
uri: API_FE_URL + url,
- json: true
+ json: true,
+ forever: true
});
}
function postBE(url) {
return request.post({
uri: API_BE_URL + url,
- json: true
+ json: true,
+ forever: true
});
}