Sha256: 78526a3baa0fbe23789335a1c2ea0ea671646f4b6315f9af2809893c158a94d2
Contents?: true
Size: 736 Bytes
Versions: 3
Compression:
Stored size: 736 Bytes
Contents
require_relative 'registries/simple_registry' require_relative 'registries/redis_registry' Pakyow::Config.register(:realtime) { |config| # The registry to use when keeping up with connections. config.opt :registry, Pakyow::Realtime::SimpleRegistry # The Redis config hash. config.opt :redis, url: 'redis://127.0.0.1:6379' # The key used to keep track of channels in Redis. config.opt :redis_key, 'pw:channels' # Whether or not realtime should be enabled. config.opt :enabled, true }.env(:development) { |opts| opts.registry = Pakyow::Realtime::SimpleRegistry }.env(:staging) { |opts| opts.registry = Pakyow::Realtime::RedisRegistry }.env(:production) { |opts| opts.registry = Pakyow::Realtime::RedisRegistry }
Version data entries
3 entries across 3 versions & 1 rubygems