Skip to content

Instantly share code, notes, and snippets.

@aconbere
Created October 8, 2009 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aconbere/205458 to your computer and use it in GitHub Desktop.
Save aconbere/205458 to your computer and use it in GitHub Desktop.
class Pubsub_presenceController < Babylon::Base::Controller
@@nodes = []
@@listeners = Subscribers.new
@@pubsub_subscribers = Subscribers.new
def on_connected
# send a node request
@from = Babylon.config[:jid]
@to = Babylon.config[:pubsub_jid]
@id = "nodereq1"
render_evaluate_and_send(:file => "node_request.xml.builder")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment