Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serverless/platform-client

Package Overview
Dependencies
Maintainers
7
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serverless/platform-client - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

2

package.json
{
"name": "@serverless/platform-client",
"version": "3.6.0",
"version": "3.6.1",
"main": "./src/index.js",

@@ -5,0 +5,0 @@ "jsdelivr": "dist-web/serverless-platform-client.min.js",

@@ -105,15 +105,18 @@ 'use strict';

// a `pong` within 500 ms.
this.pingInterval = setInterval(() => {
this.pingTimeout = setTimeout(() => {
// Use `WebSocket#terminate()`, which immediately destroys the connection,
// instead of `WebSocket#close()`, which waits for the close timer.
this.connection.terminate();
this.connection = null;
}, 500);
this.connection.ping();
}, 1000);
if (this.connection.ping) {
// NOT available in browser
this.pingInterval = setInterval(() => {
this.pingTimeout = setTimeout(() => {
// Use `WebSocket#terminate()`, which immediately destroys the connection,
// instead of `WebSocket#close()`, which waits for the close timer.
this.connection.terminate();
this.connection = null;
}, 500);
this.connection.ping();
}, 1000);
this.connection.on('pong', () => {
clearTimeout(this.pingTimeout);
});
this.connection.on('pong', () => {
clearTimeout(this.pingTimeout);
});
}

@@ -120,0 +123,0 @@ return resolve();

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc