I am using SmartFox Server and want to check if the Server is ready to accept requests or not.According to my searchings in the available documentation and google..the way to do this by using a event handler on the server stating which kind of event needs to be handled or a certain block of code that needs to be executed when that event is fired..An event SERVER_READY is available to use..but how do i send a response to the client is what i am stuck at..this is the code so far..
In my extension..
addEventHandler(SFSEventType.SERVER_READY, ServerReadyHandler.class );
And the handler class..
public class ServerReadyHandler extends BaseServerEventHandler{
MyExtension ade=null;
ISFSObject resp_obj=null;
@Override
public void handleServerEvent(ISFSEvent event) throws SFSException
{
ade=(AdminExtension) getParentExtension();
if(event.getType().equals(SFSEventType.SERVER_READY))
{
// response needs to be send to the client that server is ready..
}
}
}
my client side is in android java...