AMQP(RabbitMQ) in Ignition

I did do some digging here

and here

But I think you guys are a few levels ahead of me.
I simply want one always open connection (I need a class for this I think) when Ignition is running and want to speak to this connection when necessary.
How can I use system.util.getGlobals() to store a class? Is there any example on this?

And also, I'm a bit confused about system.util.getGlobals(). Are these globals something on your gateway? Because I see they are different when I open a new designer session.

*Edit: Ah, it is the same when you run it in a gateway scope, I see... Now I just need to find how I can store my connections in it.