Sha256: fe1e5830977ad941ed2ba2d30b2d16cef1fde10dff249871dca2d73bbec732d2
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
require 'faye/websocket' require 'grand_central/model' require 'redis' require 'set' require 'json' require 'power_strip/version' require 'power_strip/app' module PowerStrip module_function def call env app.call env end def app @app ||= App.instance end def start(**args) @app = App.instance(**args) @thread = Thread.new { app.listen } end def [] channel app.channels[channel] end def on event_name, channel:, &block app.on event_name, channel: channel, &block end end begin require 'opal' Opal.append_path File.expand_path('../opal', __FILE__) rescue require 'sprockets' Sprockets.append_path File.expand_path('../js', __FILE__) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
power_strip-0.1.1 | lib/power_strip.rb |
power_strip-0.1.0 | lib/power_strip.rb |