INDEX

registerService

Register a service to the Spaceify service manager. Applications and spacelets can register only their own provided services.

Only native and develop mode applications can register their ports with the register ports object. These ports are outside Spaceify's control and visibility and therefore need to be passed explicitly to the service registration. If they are not, Spaceify's service discovery can not return services having valid port numbers.

Request

Parameter Type Description
service_name string Name of a service.
ports string array An array of TCP/IP port numbers allocated by the applications themselves.

Result response

Type Desription
object The service object of the registered service.

Error response

Close
copyright © Spaceify.org 2014