def broadcast(name, message, opts={})

      # encapsulation
      encap = { n: name,
                m: message,
                t: opts[:to] || /.*/,
                e: opts[:except] || []
              }

      EM.next_tick {
        @faye.publish BROADCAST, Base64.urlsafe_encode64(Marshal.dump(encap))
      }

    end
def broadcast(name, message, opts={})

      # encapsulation
      encap = { n: name,
                m: message,
                t: opts[:to] || /.*/,
                e: opts[:except] || []
              }

      EM.next_tick {
        @faye.publish BROADCAST, Base64.urlsafe_encode64(Marshal.dump(encap))
      }

    end
Creates a new reaction client.
 @param [Faye::Client] client    bayeux client
 @param [String]       salt      secret salt, used to generate access
                                 tokens
 Publishes message to zero or more channels.
 @param [String] name    controller name
 @param [String] message message to send
 @option opts :to        can be a regular expression or an array, defaults
                         to all.
 @option opts :except    can be a regular expression or an array, defaults
                         to none.