jayrambhia / AndroidAMQPExample

Demo android app for receiving group messages using RabbitMQ. Python RabbitMQ server/client included

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AndroidAMQPExample

Demo android app for receiving group messages using RabbitMQ. Python RabbitMQ server/client included

Description

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.

How To Use:

Server

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

Client

python receive_group_messages.py <some_group> <another_group> ..

alt tag

About

Demo android app for receiving group messages using RabbitMQ. Python RabbitMQ server/client included


Languages

Language:Java 85.7%Language:Python 14.3%