Make group timeout configurable.

This commit is contained in:
Simo Kinnunen
2014-05-14 19:12:28 +09:00
parent d59c156297
commit 78c207c8d1
5 changed files with 30 additions and 12 deletions

View File

@@ -8,9 +8,11 @@ module.exports = function GroupServiceFactory(
groupService.invite = function (device) {
var tx = TransactionService.create(device)
socket.emit('group.invite', device.channel, tx.channel, {
serial: {
value: device.serial
, match: 'exact'
requirements: {
serial: {
value: device.serial
, match: 'exact'
}
}
})
return tx.promise.then(function(result) {
@@ -24,9 +26,11 @@ module.exports = function GroupServiceFactory(
groupService.kick = function (device) {
var tx = TransactionService.create(device)
socket.emit('group.kick', device.channel, tx.channel, {
serial: {
value: device.serial
, match: 'exact'
requirements: {
serial: {
value: device.serial
, match: 'exact'
}
}
})
return tx.promise.then(function(result) {