- Technical documentation
- API docs
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.
|service_name||string||Name of a service.|
|ports||string array||An array of TCP/IP port numbers allocated by the applications themselves.|
|object||The service object of the registered service.|