/**
 * Copyright (C) 2013 Alexander Szczuczko
 *
 * This file may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 */
package ca.szc.keratin.core.net.handlers;

import net.engio.mbassy.listener.Handler;

import org.pmw.tinylog.Logger;

import ca.szc.keratin.core.event.message.recieve.ReceivePing;

public class ServerPingHandler
{
    @Handler
    private void handlePingPong( ReceivePing event )
    {
        Logger.trace( "Handling PING by sending echo PONG" );
        event.pong();
    }
}

@@ -343,16 +343,78 @@
 ivePing;
+%0Aimport ca.szc.keratin.core.event.message.recieve.ReceivePong;
 %0A%0Apublic
@@ -601,11 +601,111 @@
 );%0A    %7D
+%0A%0A    @Handler%0A    private void handleServerPong( ReceivePong event )%0A    %7B%0A        // Nothing%0A    %7D
 %0A%7D%0A

Handle ReceivePong events, do nothing. Just to stop unhandled message flooding.