- Technical documentation
- API docs
void setConnectionListeners(DOMString service_name, Function listener)
Set connection listener to both unsecure and secure provided service simultaneously.
|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.