Demo android app for receiving group messages using RabbitMQ. Python RabbitMQ server/client included
This is a demo application which shows how RabbitMQ can be used for a group chat/messaging app.
This uses RabbitMQ java bindings. A connection is set up and the queue is bound to group ids. MainActivity starts a service in background which handles the connection with the server. I'm using EventBus
to communicate between Service and Activity.
A naive Python implementation of the server is provided. As this is just a demo application, it uses some demo data. It can be extended to add users, events and other things. A python client is also available using which one can test if the server is working or not.
- Change
HOSTNAME
based on your server IP. - Change channels/group ids
- setup RabbitMQ Access
- Create a new user with username - "android" and password "android" and add it as admin in the virtual host
- For Mac Users - http://superuser.com/questions/464311/open-port-5672-tcp-for-access-to-rabbitmq-on-mac
python emit_group_messages.py
# Input style - message:channel_index_in_list
>>> Input prompt
This is a simple message.:1
>>> Input prompt
This is another simple message.:2
python receive_group_messages.py <some_group> <another_group> ..