INDEX

void setConnectionListeners(DOMString service_name, Function listener)

Set connection listener to both unsecure and secure provided service simultaneously.

Parameter Description
service_name Name of a service.
listener User defined callback function that is called on connection.

The arguments passed to the connection event listener are identical to explained in Service.setConnectionListener.

The operation defined in the Service.setConnectionListener method is comparable to this method. The difference is explained by how Spaceify's API opens both unsecure and secure service types automatically. This method sets the listener to both of the types.

Use the Service.setConnectionListener method, if you have acquired both unsecure and secure services with getProvidedService, and want to, for example, have separate listeners for the types.

Close
copyright © Spaceify.org 2014