mobbdev 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6915,6 +6915,9 @@ import WebSocket from "ws";
|
|
|
6915
6915
|
var SUBSCRIPTION_TIMEOUT_MS = 30 * 60 * 1e3;
|
|
6916
6916
|
function createWSClient(options) {
|
|
6917
6917
|
return createClient({
|
|
6918
|
+
//this is needed to prevent AWS from killing the connection
|
|
6919
|
+
//currently our load balancer has a 29s idle timeout
|
|
6920
|
+
keepAlive: 1e4,
|
|
6918
6921
|
url: options.url,
|
|
6919
6922
|
webSocketImpl: options.websocket || WebSocket,
|
|
6920
6923
|
connectionParams: () => {
|