Service getRequiredService(DOMString service_name)

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

Parameter Description
service_name Name of a service.

This method returns on success an instance of the Service class. The return value is null If the service_name is not defined in the connected services.

Nodej.js programs

Both the automatically and manually created services are returned by this method.

Notice! It is not a good practice to connect to the open services of other applications with the connect method. List the required services in the manifest and let the automation provided by the start method make the connections.

Web page

The available services are the open services of application(s) the start or connect method is used to connect to.

copyright © 2014