Giter Club home page Giter Club logo

socketmessenger's Introduction

Console Socket Messenger

This repository contains two Dart projects: a client-side app and a server-side app for a console-based socket messenger. The server-side app listens on IP 127.0.0.1 and port 8080 by default. The client app connects to the server, allowing users to send messages to each other through the console.

Getting Started

Prerequisites

  • Dart SDK installed on your system

Running the Server-side App

  1. Navigate to the server-side app directory: cd server_app\bin

  2. Run the server-side app: dart run server_app.dart

The server will start listening on IP 127.0.0.1 and port 8080 by default. You can change the IP and port in code.

Running the Client-side App

  1. Open a new terminal and navigate to the client-side app directory: cd client_app\bin

  2. Run the client-side app: dart run client_app.dart

  3. Enter your username when prompted.

  4. Start typing messages in the console and press Enter to send them. The server app will receive the message, include the author's name, and send it to every user except the author.

  5. To exit the client app, type exit and press Enter.

Features

  • Server-side app listens on IP 127.0.0.1 and port 8080 by default (modifiable in code)
  • Client-side app connects to the server and sends the user's name
  • Server-side app maintains a list of connected users and their names
  • Users can send messages to each other through the console
  • Server-side app broadcasts messages to all connected users, excluding the author
  • Users can exit the client app by typing 'exit' and pressing Enter

Contributing

Feel free to submit issues or pull requests to improve this project. Your contributions are welcome!

socketmessenger's People

Contributors

mehrzut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.