Hi!
We are using the java client and server. The method you have
mentioned is actually called (we can step in), but the method on the
client is never called from there. So the client does not "see" the
login fail.
Event LOG_IN_FAILURE is catched and processed on the client, but the respective method on client side does not fire.
On the protocol (SpringConfig.java):
@Autowired
@Qualifier("webSocketProtocol")
private Protocol webSocketProtocol;
...
public @Bean(name = "C3GameRoom") GameRoom C3GameRoom() {
GameRoomSessionBuilder sessionBuilder = new GameRoomSessionBuilder();
sessionBuilder.parentGame(C3Game()).gameRoomName("C3GameRoom").protocol(webSocketProtocol);
C3Room room = new C3Room(sessionBuilder);
return room;
}
This is the code on client side (clientTest.java):
private static void addDefaultHandlerToSession(Session session) {
// we are only interested in data in, so override only that method.
AbstractSessionEventHandler handler = new AbstractSessionEventHandler(session) {
@Override
public void onLoginFailure(Event event) {
super.onLoginFailure(event); //To change body of generated methods, choose Tools | Templates.
System.out.println("onLoginFailure");
}
@Override
public void onLoginSuccess(Event event) {
super.onLoginSuccess(event); //To change body of generated methods, choose Tools | Templates.
System.out.println("onLoginSuccess");
}
Login success does work (client prints "onLoginSuccess"), but it does nothing for onLoginFailure.
Thanks in advance! And sorry for the long delay.
Meldric