Chat client using websockets in java.