lib/sinatra-websocketio/websocketio.rb in sinatra-websocketio-0.3.3 vs lib/sinatra-websocketio/websocketio.rb in sinatra-websocketio-0.3.4

- old
+ new

@@ -44,10 +44,9 @@ end end end def self.push(type, data, opt={}) - session_ids = opt[:to].to_s.empty? ? self.sessions.keys : [opt[:to]] if opt.include? :to return unless self.sessions.include? opt[:to] s = self.sessions[opt[:to]] begin s.send({:type => type, :data => data}.to_json)