This demo Flutter application showcases a real-time chat application built using WebSockets. It allows users to send and receive message and manage users in a simple and intuitive interface. This application is intended for developers who want to learn how to implement real-time communication in their Flutter apps using WebSockets.
- Flutter SDK (version ^3.32.0 or higher)
- Dart SDK (version ^3.8.1 or higher)
- Clone the repository:
git clone https://github.com/your-username/demo_flutter_websocket_chat.git
- Navigate to the project directory:
cd demo_flutter_websocket_chat - Install dependencies:
flutter pub get
No specific configuration is required for this demo application. However, you may need to configure your WebSocket server endpoint in the client application if you are using a custom server.
- Run the websocket server:
cd server dart run bin/server.dart - Run the Flutter application:
cd client flutter run - Enter your username and join a chat room.
- Start sending and receiving messages in real-time.