Skip to content

This is a real-time messaging application that uses SocketIO to establish a connection between the client and server. The server uses RabbitMQ to implement a message queue for processing incoming messages from the client. The processed messages are then sent back to the client via SocketIO.

Notifications You must be signed in to change notification settings

umesh-khatiwada/clientseverSockioRabbitMq

Repository files navigation

Client Server SocketIO RabbitMQ

This is a real-time messaging application that uses SocketIO to establish a connection between the client and server. The server uses RabbitMQ to implement a message queue for processing incoming messages from the client. The processed messages are then sent back to the client via SocketIO.

Prerequisites

Before you can run this project, you will need to have Docker installed on your system.

Installation

    To install the dependencies for the server, navigate to the server directory and run the following command:

  • docker build -t consumer ./
  • This will build the Docker image for the server.

    To run the server, execute the following command in the root directory of the project:

  • docker-compose up --build
  • This will start the server and the client on ports 3002 and 3000 respectively.

  • docker-compose exec consumer /bin/bash -c 'for ((i=1;i<=1;i++)); do node publisher.js; done'
  • To feed data to the server, execute the following command in the root directory of the project.This will send messages to the server for processing.

Reference

wait.sh will wait the rabbitmq to initalize and wait to the timeout .This is the bash command.

https://gist.github.com/christian-draeger/f82ceb31454a38b0dc0958f8ac092b8f

Contributing

If you would like to contribute to this project, feel free to submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

This is a real-time messaging application that uses SocketIO to establish a connection between the client and server. The server uses RabbitMQ to implement a message queue for processing incoming messages from the client. The processed messages are then sent back to the client via SocketIO.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •