Sha256: 9d40460b8211a28bf35eec85a2c0201e482ef2a28a016673ef9b2ed3fe07ca2c

Contents?: true

Size: 1.12 KB

Versions: 12

Compression:

Stored size: 1.12 KB

Contents

# Ably is the base namespace for the Ably {Ably::Realtime Realtime} & {Ably::Rest Rest} client libraries.
#
# Please refer to the {file:README.md Readme} on getting started.
#
# @see file:README.md README
module Ably
  # Fallback hosts to use when a connection to rest/realtime.ably.io is not possible due to
  # network failures either at the client, between the client and Ably, within an Ably data center, or at the IO domain registrar
  # see https://ably.com/docs/client-lib-development-guide/features/#RSC15a
  #
  FALLBACK_DOMAIN = 'ably-realtime.com'.freeze
  FALLBACK_IDS = %w(a b c d e).freeze

  # Default production fallbacks a.ably-realtime.com ... e.ably-realtime.com
  FALLBACK_HOSTS = FALLBACK_IDS.map { |host| "#{host}.#{FALLBACK_DOMAIN}".freeze }.freeze

  # Custom environment default fallbacks {ENV}-a-fallback.ably-realtime.com ... {ENV}-a-fallback.ably-realtime.com
  CUSTOM_ENVIRONMENT_FALLBACKS_SUFFIXES = FALLBACK_IDS.map do |host|
    "-#{host}-fallback.#{FALLBACK_DOMAIN}".freeze
  end.freeze

  INTERNET_CHECK = {
    url:     '//internet-up.ably-realtime.com/is-the-internet-up.txt',
    ok_text: 'yes'
  }.freeze
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ably-rest-1.2.7 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.7 lib/ably/modules/ably.rb
ably-rest-1.2.6 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.6 lib/ably/modules/ably.rb
ably-rest-1.2.4 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.4 lib/ably/modules/ably.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.3 lib/ably/modules/ably.rb
ably-rest-1.2.2 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.2 lib/ably/modules/ably.rb
ably-rest-1.2.1 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.1 lib/ably/modules/ably.rb