Question Sorin Petrescu · Mar 8, 2021 Cache Socket Client / Java Server Hi, I have to create to a web socket client, but I'm unable to read any data from the server, after flushing the buffer. I have no access to the server, only two examples for the client, one in java and the other one in php: java example: socket = new Socket("192.168.0.1", 2003); DataOutputStream out = new DataOutputStream(socket.getOutputStream()); out.writeUTF("aPassword"); out.writeInt(websiteId); out.flush(); DataInputStream in = new DataInputStream(socket.getInputStream()); int orderId = in.readInt(); #API #Caché 0 8 0 586