💬 Socket.IO Horizontal Scaling Test App Please make sure to leave a star. Thank you ~ This is a simple React.js application designed to test horizontal scaling with Socket.IO. The app allows users to connect to a specified server and interact with a chat window to send and receive messages.
✨ Features 🔗 Server Connection Input: Input field to specify and connect to a Socket.IO server. 💬 Real-Time Chat Window: Send and receive messages in real-time with other connected clients. 🛠️ Horizontal Scaling Test: Designed to help test the effectiveness of horizontally scaled Socket.IO servers. 🚀 Getting Started 📋 Prerequisites ⚡ Node.js (v14.x or later) 📦 npm (v6.x or later) 🌐 A running Socket.IO server 🔧 Installation
Fork the Repository or clone it
git clone https://github.com/yourusername/socketio-horizontal-scaling-test-app.git
cd socketio-horizontal-scaling-test-app
Install Dependencies
npm install
Start the Application
npm start
The application should now be running on http://localhost:5173.
📝 Usage Connect to a Server Download the source code for the server here Follow the instructions there to spawn multiple servers
Enter the Socket.IO server URL in the input field provided at the top left corner of the application. Click on the "Connect" button to establish a connection with the server.
Chat Window Use the chat window to send messages to the server. Messages will be broadcast to all connected clients and displayed in the chat window in real-time.
Use the chat window to send messages to the server. Messages will be broadcast to all connected clients and displayed in the chat window in real-time. 🖼️ Screenshots Server Connection Input:
Chat Window:
🔄 Customization You can customize the application by editing the src directory. Key components include:
App.js: Main application component. ChatWindow.js: Component handling the chat interface. ServerInput.js: Component managing server connection input. 🤝 Contributing If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.
🍴 Fork the Project 🌿 Create your Feature Branch (git checkout -b feature/AmazingFeature) 💻 Commit your Changes (git commit -m 'Add some AmazingFeature') 📤 Push to the Branch (git push origin feature/AmazingFeature) 📥 Open a Pull Request 📜 License This project is licensed under the MIT License. See the LICENSE file for details.
📧 Contact Nayeemur Rahman - Email: nayeem.nayeem712@gmail.com Upwork: https://www.upwork.com/freelancers/nayeemurrahman