Add owners to groups.

This commit is contained in:
Simo Kinnunen
2014-02-04 20:33:53 +09:00
parent 3e7d91cb91
commit 37303c5d92
8 changed files with 98 additions and 70 deletions

View File

@@ -51,6 +51,16 @@ define(['./module', 'oboe'], function(mod, oboe) {
modify(get(data), data)
})
socket.on('group.join', function(data) {
modify(get(data), data)
})
socket.on('group.leave', function(data) {
modify(get(data), {
owner: null
})
})
oboe('/api/v1/devices')
.node('devices[*]', function(device) {
// We want to skip other arguments