- Technical documentation
- API docs
void setServerUpListener(Function listener)
Every provided service is in an iplementation of a server. This listener is emitted when server is up and ready to accept connections.
|listener||User defined callback function that is called when server is up.|
The connection listner is called with these arguments.
|connectionId||DOMString||Unique identifier of a server.|
|service_name||DOMString||Service name of a provided service.|
|isSecure||Boolean||The server is secure if the value true and false if not.|
|unique_name||DOMString||Unique name of the application or spacelet providing the service.|
Every provided service server can have a separate listener but one listener is enough if the service_name and isSecure arguments are utilized.
Notice! When a provided service is created for the first time this event can not be emitted. This is because the up listener can not be set by a client program until provided service is created. In essence, this event is emitted when server has gone down and the automation in the server class manages to get it up again.