Browse Source

run Method, implement from Runnable

remotes/origin/feature/client/make-input-field-buttons-interactive
Valentin Spiroski 11 months ago
parent
commit
c928d6d4c2
  1. 8
      src/main/java/ClientHandler.java

8
src/main/java/ClientHandler.java

@ -27,8 +27,14 @@ public class ClientHandler implements Runnable {
@Override @Override
public void run() { public void run() {
// TODO Auto-generated method stub
try {
fromClientReader = new BufferedReader(new InputStreamReader(connectionToClient.getInputStream()));
toClientWriter = new PrintWriter(new OutputStreamWriter(connectionToClient.getOutputStream()));
chatServer.broadcastMessage(name + " connected.");
} catch (IOException e) {
e.printStackTrace();
}
} }

Loading…
Cancel
Save