AnonChat

Originally made by Arslee on arslee07/anonchat.


What’s this?

Anonchat is a microprotocol for communication build on Dart using sockets.

A server acts as a message distributor between the connected clients, while a client can send and recieve messages

A typical v2 message looks like this:

{"user": "calamity", "msg": "hey, how you doing today?"}

Building

If you want to build the client and the server, you need to get the Dart SDK (https://dart.dev/get-dart) and git

For running the server you need to port-forward the port you are going to choose to run the server.

Instructions:

# 1. Clone the repository
git clone https://github.com/anonchat-org/anonchat-v2.git
cd anonchat-v2

# 2. Build the executables
#    If you want to build for other platforms - see `dart compile`
#    A build script is provided - `./build.sh`
mkdir build
dart compile exe anonchat-server/bin/anonchat_server.dart -o build/server && chmod +x build/server # for server
dart compile exe anonchat-cli/bin/anonchat_cli.dart -o build/cli && chmod +x build/cli # for cli client

The built executables will be in the build folder.


Running

After you’ve downloaded the binaries from the releases, put them where you need to.

Let’s say you need to connect to a server, which has an ip of example.com and port of 2345.

Example: ./cli example.com:2345

By default this is going to give you the nickname of Anon, but if you need to identify yourself – you can add a parameter of a nickname

Example: ./cli example.com:2345 bob


Feel free to open an issue/PR if you have anything to say/ask!

GitHub

View Github