Multithreaded client server socket chat app written in Java which uses json protocols.
- quality: maintain high quality java code
- versatile: able to send files aswell as text
- hackable: comment unobvious code and use few lines with good explanation
- client sends openrequest identifying the channel to publish on
- server responds with success if it succeedes
- client sends either publish, subscribe, unsubscribe or get requests
- in case of get, server responds with messagelist otherwise server responds with success or error
- loop 3
First build socks:
make
Then run server using wrapper:
./server
Finally, run as many clients as you'd like.
./client