Code: Select all
Session created: { Id: 30, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52295 } on Server port: 9933 <---> 52295
But after a while the connection timeout is triggered in the client and it is disabled
Code: Select all
Session removed: { Id: 30, Type: DEFAULT, Logged: No, IP: 127.0.0.1:52295 }
In other words, the client did not can connect to the server during the timeout. So I don't understand why the client can't connect to the server. I'm using a new extension:
Code: Select all
public class MyExtension extends SFSExtension
{
@Override
public void init()
{
trace("Hello, this is my first SFS2X Extension!");
// Add a new Request Handler
addRequestHandler("connection", ReqHandler.class);
}
public class ReqHandler extends BaseClientRequestHandler
{
@Override
public void handleClientRequest(User sender, ISFSObject params)
{
trace("CONNECT!!");
}
}
}
How do I approve a client connection in the extension so that client can start sending requests? Or is it for another reason?