I am trying to write a socket client that receives a data stream from the server. I am able to get the first couple of bytes but then it breaks.
Code:
impo