def handle_hello(packet)
      LOGGER.debug('Hello!')

      # The heartbeat interval is given in ms, so divide it by 1000 to get seconds
      interval = packet['d']['heartbeat_interval'].to_f / 1000.0
      setup_heartbeats(interval)

      LOGGER.debug("Trace: #{packet['d']['_trace']}")
      LOGGER.debug("Session: #{@session.inspect}")

      if @session&.should_resume?
        # Make sure we're sending heartbeats again
        @session.resume

        # Send the actual resume packet to get the missing events
        resume
      else
        identify
      end
    end
def handle_hello(packet)
      LOGGER.debug('Hello!')

      # The heartbeat interval is given in ms, so divide it by 1000 to get seconds
      interval = packet['d']['heartbeat_interval'].to_f / 1000.0
      setup_heartbeats(interval)

      LOGGER.debug("Trace: #{packet['d']['_trace']}")
      LOGGER.debug("Session: #{@session.inspect}")

      if @session&.should_resume?
        # Make sure we're sending heartbeats again
        @session.resume

        # Send the actual resume packet to get the missing events
        resume
      else
        identify
      end
    end
Op 10