Sha256: f1f59d8e56a72033a47e2a6e9017dbf387d6e8973d39baef4f48e851219d7b33

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 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.threads ||= 16
        ::Iodine.start
      end
    end
    true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plezi-0.14.2 lib/plezi/activation.rb
plezi-0.14.1 lib/plezi/activation.rb
plezi-0.14.0 lib/plezi/activation.rb