Service getProvidedService(DOMString service_name)

Get a provided service. The connection to the service has been established over an unencrypted channel.

Parameter Description
service_name Name of a service.

This method can be called only from Node.js applications and spacelets. The available services are the services listed in the provided services field of the manifest.

This method returns an instance of the Service class if the service exists. The return value is null If the service is not in the list of services. If this method is called from a web page the return value is null.

copyright © 2014