startSpacelet(DOMString unique_name, Function callback)
Start a spacelet identified by the unique name.
Parameter | Description |
---|---|
unique_name | Unique name of a spacelet. |
callback | User defined callback function that is called after the response is available. |
After the response is available the callback function is called with two arguments: callback(err, data).
Argument | Type | Desription |
---|---|---|
err | JSON Object | An error_object or null if no error occured. |
data | JSON Object Array | An array of service objects. The returned services are of type "open". |