Closed roback closed 8 years ago
Code looks good! I'll try this out in Imse and see if it works as expected, hang on.
Doesn't work to just require twingly/amqp/subscription
for example. But with that fixed I think this can go in. Great work!
Doesn't work to just require twingly/amqp/subscriptionfor example. But with that fixed I think this can go in. Great work!
Added that to the todo-list :)
LGTM!
close #10
Session
- The class which sets up the amqp connection (is used byConnection.instance
)Connection.options=
- can be used to set amqp hosts if they are not stored in ENV.Connection.instance
Session
object the first time its calledsession.connection
) each time its calledTook inspiration for the singleton pattern from http://stackoverflow.com/a/5259578
Todo
require "twingly/amqp/subscription"
) (9a3d4c3ee6ecb1d35736b989523ce5cb8191d2b9)