Thursday, 26 July 2018

console.log not printing the first character

I'm using 'net' to make a server. When a user connects, console.log works fine and prints how many clients are connected. When the client connects, it instantly sends a string to the server. The event that handles data on the server properly receives the string, but the console.log is supposed to print a "Recieved data" message. It prints, but the first letter is always replaced with a blank space. What's going on?

Submitted July 26, 2018 at 07:57PM by SonamuGames

No comments:

Post a Comment