@Override public void sendPing(ByteBuffer applicationData) throws IOException { if (applicationData != null && applicationData.remaining() > 125) { throw new IllegalArgumentException( "Ping applicationData exceeded the maximum allowed payload of 125 bytes."); } session.restartIdleTimeoutExecutor(); remoteEndpoint.sendPing(applicationData); }