Sha256: 15d9f878462b4b73533d161af0286be6ebc9da37d422dd117b9e902d986f1fc6

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

# frozen_string_literal: true
require "lite_cable/version"
require "lite_cable/internal"
require "lite_cable/logging"

# Lightwieght ActionCable implementation.
#
# Contains application logic (channels, streams, broadcasting) and
# also (optional) Rack hijack based server (suitable only for development and test).
#
# Compatible with AnyCable (for production usage).
module LiteCable
  require "lite_cable/connection"
  require "lite_cable/channel"
  require "lite_cable/coders"
  require "lite_cable/config"
  require "lite_cable/anycable"

  class << self
    def config
      @config ||= Config.new
    end

    # Broadcast encoded message to the stream
    def broadcast(*args)
      LiteCable::Server.broadcast(*args)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
litecable-0.4.2 lib/lite_cable.rb
litecable-0.4.1 lib/lite_cable.rb
litecable-0.4.0 lib/lite_cable.rb