code: private void pingAtRegularIntervals(WebSocketSession session) {
          pingTask = new PingTask(session);
          if (pingScheduledExecutorService != null) {
              pingScheduledExecutorService.shutdownNow();
          }
          pingScheduledExecutorService = Executors.newSingleThreadScheduledExecutor();
          pingScheduledExecutorService.scheduleAtFixedRate(pingTask, 1L, 30L, TimeUnit.SECONDS);
      }
docs: Starts the ping task. Note: It only gets called on HELLO event type.
  
  @param session