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. 10
      src/main/java/ClientHandler.java

10
src/main/java/ClientHandler.java

@ -27,8 +27,14 @@ public class ClientHandler implements Runnable {
@Override
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