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

gitter-realtime-client

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitter-realtime-client - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

15

lib/realtime-client.js

@@ -98,2 +98,7 @@ "use strict";

/**
* Only perform a sequence reset at most once every 5 minutes
*/
var MIN_PERIOD_BETWEEN_RESETS = 300 * 1000;
SequenceGapDetectorExtension.prototype = {

@@ -103,2 +108,10 @@ incoming: function(message, callback) {

var channel = message.channel;
if (this.lastResetTime) {
var timeSinceLastReset = Date.now() - this.lastResetTime;
if (timeSinceLastReset < MIN_PERIOD_BETWEEN_RESETS) {
return callback(message);
}
}
if(c && channel && channel.indexOf('/meta') !== 0) {

@@ -119,2 +132,4 @@ if (c === 1) {

delete this._seqStarted;
delete this._seq;
this.lastResetTime = Date.now();

@@ -121,0 +136,0 @@ // Reset the connection

2

package.json
{
"name": "gitter-realtime-client",
"version": "0.3.10",
"version": "0.3.11",
"description": "Gitter Realtime Client",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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