Sha256: 0dc8910b8eacd6dea33e74a12a2cd3073d95d23df4bb854f4cd2793812b30ba8

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  class Application
    module Behavior
      module Realtime
        # Silences asset requests from being logged.
        #
        module Silencing
          extend Support::Extension

          apply_extension do
            on "load" do
              unless config.realtime.log_initial_request
                Pakyow.silence do |connection|
                  connection.path.start_with?(File.join("/", config.realtime.path))
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-realtime-1.0.6 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.5 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.4 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.3 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.2 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.1 lib/pakyow/application/behavior/realtime/silencing.rb
pakyow-realtime-1.0.0 lib/pakyow/application/behavior/realtime/silencing.rb