Currently, I have developed a server daemon that generates various data, such as messages. However, my main focus is on client monitoring. For instance, I have a webpage and I aim to maintain a constant TCP connection to the server in order to display all incoming data within a textbox. I am aware that this task can be accomplished with Flash, but I am specifically interested in a JavaScript implementation.
Is this feasible and what are considered best practices for achieving this?