Sha256: ea9b64ad8ac0ae78f2163d1edf75a4d8ba95a53fe23fb4ba2c678f4562baf357

Contents?: true

Size: 1.12 KB

Versions: 10

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://docs.ably.io/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

10 entries across 10 versions & 2 rubygems

Version Path
ably-rest-1.2.0 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.2.0 lib/ably/modules/ably.rb
ably-rest-1.1.8 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.1.8 lib/ably/modules/ably.rb
ably-rest-1.1.7 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.1.7 lib/ably/modules/ably.rb
ably-rest-1.1.6 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.1.6 lib/ably/modules/ably.rb
ably-rest-1.1.5 lib/submodules/ably-ruby/lib/ably/modules/ably.rb
ably-1.1.5 lib/ably/modules/ably.rb