Sha256: eb26b4f63b099a5b1d1e5e4eb12437b72ca4cd19596188f3f4d513157c0bfe3b
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
require 'json' require 'event_emitter' require 'sinatra/streaming' require File.expand_path 'application', File.dirname(__FILE__) require File.expand_path '../sinatra-cometio', File.dirname(__FILE__) class CometIO def self.channel @@channel ||= EM::Channel.new end def self.push(type, data) self.channel.push :type => type, :data => data end end EventEmitter.apply CometIO
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-cometio-0.0.1 | lib/sinatra/cometio.rb |