INDEX

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.

Parameter Description
listener User defined callback function that is called when server is up.

The connection listner is called with these arguments.

Argument Type Desription
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.

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.

Close
copyright © Spaceify.org 2014