INDEX

void start()

Start a spacelet and connect to its open provided services. This method has two overloads.

  1. start(Object context, DOMString unique_name)
  2. start(Function callback, DOMString unique_name)
Parameter Description
context The context is an object implementing start and fail methods.
callback User defined callback function that is called after the response is available.
unique_name Unique name of a spacelet.

1 . This overload calls the start method of the passed context if starting the spacelet was successful and the fail method on failure.

2 . The callback function in this overload is called with two arguments: callback(err, data).

Argument Type Desription
err object An error_object if starting the spacelet failed or null if the spacelet was started succesfully.
data Boolean The value is false if starting the spacelet failed and true otherwise.
Close
copyright © Spaceify.org 2014