Sha256: 21d7f04329f71c0181e699debc6ffad58d13c9bc64026659dcaa8f884fbac8c3

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

require 'plezi/websockets/message_dispatch' unless defined?(::Plezi::Base::MessageDispatch)

module Plezi
  protected

  @plezi_finalize = nil
  def plezi_finalize
    if @plezi_finalize.nil?
      @plezi_finalize = true
      @plezi_finalize = 1
    end
  end
  @plezi_initialize = nil
  def self.plezi_initialize
    ::Plezi::Base::MessageDispatch._init
    if @plezi_initialize.nil?
      @plezi_initialize = true
      @plezi_autostart = true if @plezi_autostart.nil?
      at_exit do
        next if @plezi_autostart == false
        ::Iodine::Rack.app = ::Plezi.app
        ::Iodine.start
      end
    end
    true
  end
end

::Iodine.threads ||= 16
::Iodine.processes ||= 1 unless ENV['PL_REDIS_URL'.freeze]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plezi-0.14.3 lib/plezi/activation.rb