This projects is just an example to learn how to use Ruppell's Socket Addon (https://devcenter.heroku.com/articles/ruppells-sockets ) with Java.
Before digging in this HUGE project (jk, it's only 2 classes ) please read https://devcenter.heroku.com/articles/ruppells-sockets and https://devcenter.heroku.com/articles/procfile
There are 2 classes in this example, one is the Client class and the other one is the Server class. There is also an example Procfile (mind the uppercase P ). There are very few lines of code, so just read them.
If you have problems you can contact me on Twitter (@angtrim)
Do what you want with this code.
I'm not affiliated in any way with Ruppell or Heroku.