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