An open API service indexing awesome lists of open source software.

https://github.com/hasnatrasool163/springboot-websocket-app

This repo contains a basic stomp client based messaging application made in springboot - using websockets.
https://github.com/hasnatrasool163/springboot-websocket-app

Last synced: 11 months ago
JSON representation

This repo contains a basic stomp client based messaging application made in springboot - using websockets.

Awesome Lists containing this project

README

          

# Java Swing + Spring Boot WebSocket Chat Application

This is a simple real-time chat application that uses **Java Swing** for the client-side GUI and **Spring Boot** on the backend, leveraging **WebSockets** for real-time messaging.

---

## Features
### Backend (Spring Boot):
- **WebSocket Integration**: Enables real-time bidirectional communication between the server and connected clients.
- **List of Connected Users**: Maintains and displays the list of currently connected users.
- **Message Broadcasting**: Sends messages to specific users or broadcasts them to all connected users.

### Frontend (Java Swing):
- **User-Friendly GUI**: A modern and minimalistic interface designed using Swing.
- **Live User List**: Displays the list of users currently online, dynamically updated in real time.
- **Real-Time Messaging**: Send and receive messages instantly using WebSocket.

---

## Getting Started

### Prerequisites
- **JDK 21 or higher**
- **Maven** for building the Spring Boot backend
- **Java Swing IDE** (e.g., IntelliJ IDEA, Eclipse)

---

### Installation

1. **Clone the Repository**

git clone https://github.com/Hasnatrasool163/SpringBoot-WebSocket-App.git
cd SpringBoot-WebSocket-App
2. BackEnd file name : WebsocketDemoApplication.java
3. Front-End file name : App.java

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.