You can’t. Libraries like ampqlib would need to be run on a server.
If you do have a serve setup with ampqlib, from there is just building out your own API that can interact with the library.
If you need some sort of realtime messaging in your app, you could always checkout http://socket.io/, which has it’s own client side library.