Skip to content

TLS-socket based client-server console messanger

Notifications You must be signed in to change notification settings

MaryLynJuana/Chat

Repository files navigation

TLS Chat

TLS-socket based client-server console chat application

Overview

This is a symple console messanger written with using of NodeJS's built-in 'tls' module. It features global group chatting with all connected users and one-to-one private dialogoes. Can be used by members of small companies that communicate througs a local network, by sysadmins who work on mainfraims with no GUI or just by cool oldschool guys who prefer console apps to ones with a user interface. The chat works by transering messages with TCP sockets, and using TLS above TCP makes private messaging more secure by preventing MITM attacks. User accounts and messages are stored on the server side of the app, either in file system or in a database.

Instalation

git clone https://github.com/MaryLynJuana/Chat

Usage

To host the server on your computer:

node server.js

To enter the chat as a client:

node client.js

After you run the client file, you should enter your login and password. If you are a new user, your account will be added to the database:

login

When you are logged in, you enter the global chat where ou can interact with all connected users:

global

When you receive a private message, you will get a notification. To start a dialogue with somebody, you should type '/dialogue @username'. You will see all the unread messages from that person and will be able to continue chatting in private:

private

To return to global chat, simply enter the '/leave' command:

leave

If you want to close the app, you can either type '/exit' or press Ctrl+C on your keyboard. All your unread messages will be saved for the next time:

exit

Contributing

Pull request are welcome. Just please make sure you won't breack my code

License

MIT

About

TLS-socket based client-server console messanger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •