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

queued-socket.io

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queued-socket.io - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

dist/socket.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.runQueueResult = exports.once = exports.onPing = exports.onDisconnect = exports.onConnect = exports.on = exports.off = exports.isConnected = exports.getClient = exports.events = exports.emit = exports.disconnect = exports.connect = undefined;
exports.runQueueResult = exports.once = exports.onReconnect = exports.onDisconnect = exports.onConnect = exports.on = exports.off = exports.isConnected = exports.getClient = exports.events = exports.emit = exports.disconnect = exports.connect = undefined;

@@ -95,4 +95,4 @@ var _socket = require('socket.io-client');

var onPing = function onPing() {
debug('socket - ping - ' + client.id);
var onReconnect = function onReconnect() {
debug('socket - reconnect - ' + client.id);
return queue.runQueue(runQueueResult);

@@ -121,3 +121,3 @@ };

client.on('connect', onConnect);
client.on('ping', onPing);
client.on('reconnect', onReconnect);
client.on('disconnect', onDisconnect);

@@ -146,4 +146,4 @@

exports.onDisconnect = onDisconnect;
exports.onPing = onPing;
exports.onReconnect = onReconnect;
exports.once = once;
exports.runQueueResult = runQueueResult;
{
"name": "queued-socket.io",
"version": "1.0.2",
"version": "1.0.3",
"description": "Socket.io client with offline queue",

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

@@ -120,8 +120,8 @@ import io from 'socket.io-client';

/**
* onPing
* onReconnect
*
* @private
*/
const onPing = () => {
debug(`socket - ping - ${client.id}`);
const onReconnect = () => {
debug(`socket - reconnect - ${client.id}`);
return queue.runQueue(runQueueResult);

@@ -165,3 +165,3 @@ };

client.on('connect', onConnect);
client.on('ping', onPing);
client.on('reconnect', onReconnect);
client.on('disconnect', onDisconnect);

@@ -191,5 +191,5 @@

onDisconnect,
onPing,
onReconnect,
once,
runQueueResult
};
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