@Override
    protected void wsPingReceived(NextFilter nextFilter, IoSession session, WsPingMessage wsPing) throws Exception {
        WsPongMessage reply = new WsPongMessage(wsPing.getBytes());
        nextFilter.filterWrite(session, new DefaultWriteRequestEx(reply));
    }
@ Override protected void wsPingReceived ( NextFilter nextFilter , IoSession session , WsPingMessage wsPing ) throws Exception { WsPongMessage reply = new WsPongMessage ( wsPing . getBytes ( ) ) ; nextFilter . filterWrite ( session , new DefaultWriteRequestEx ( reply ) ) ; }
Reply to native ping (from browser's native websocket layer) with native pong