       return @sendError error.message, ['message', data] if error?
       @sendMessage device, data
 
-  mydevices: (data) =>
+  mydevices: (data={}) =>
     @authDevice @uuid, @token, (error, device) =>
       debug 'mydevices', data
       return @sendError error.message, ['mydevices', data] if error?
       data.owner = device.uuid
-      @getDevices device, data, (error, foundDevices) =>
+      @getDevices device, data, null, (foundDevices) =>
         return @sendError error.message, ['mydevices', data] if error?
         @sendFrame 'mydevices', foundDevices
 

  sendFrame: (type, data) =>
    frame = [type, data]
    debug 'sendFrame', frame
    @socket.send JSON.stringify frame

  sendError: (message, frame, code) =>
    debug 'sendError', message
    @sendFrame 'error', message: message, frame: frame, code: code

  subscribeWithToken: (data) =>

    @authDevice @uuid, @token, (error, device) =>
      debug 'devices', data
      return @sendError error.message, ['devices', data] if error?
      @getDevices device, data, null, (foundDevices) =>
        @sendFrame 'devices', foundDevices

  identity: (data) =>
