Sha256: dc09fe019f3134a15ae3b6f3a9374498e582647b841bfd2ba83d6529932ba2a4

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Realtime
    module Behavior
      # 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-realtime-1.0.0.rc5 lib/pakyow/realtime/behavior/silencing.rb
pakyow-realtime-1.0.0.rc4 lib/pakyow/realtime/behavior/silencing.rb
pakyow-realtime-1.0.0.rc3 lib/pakyow/realtime/behavior/silencing.rb
pakyow-realtime-1.0.0.rc2 lib/pakyow/realtime/behavior/silencing.rb
pakyow-realtime-1.0.0.rc1 lib/pakyow/realtime/behavior/silencing.rb