queued-socket.io
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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 | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29955