I am pretty new to C#.
In Java, we can read the whole String from an InputStream of a WebSocket.
For example:
dis = new DataInputStream(clientSocket.getInputStream());
String command = dis.readUTF();
and so on...
Is it possible to do the same thing in C#, because the only possible way I found so far is to read bytes?
Byte[] bytes = new Byte[client.Available];
stream.Read(bytes, 0, bytes.Length);
If there is no workaround, and we can only read single bytes in C#, how can I determine if the user have pressed the ENTER button (it would mean that the command is finished, and I can process it on the server-side)?