Dan Sosedoff
Dan Sosedoff

Reputation: 2869

Javascript TCP connection to server

I have created server daemon, that produces some data, like messages and so. But, what im interested in - client monitoring. For example i have web page, and i need to establish persistent Tcp connection to server and show all incoming data into textbox. I know it can be done with flash, but im searching for JS implementation.

Is it possible and what`s the best practices ?

Upvotes: 4

Views: 10673

Answers (2)

jnnnnn
jnnnnn

Reputation: 4328

WebSockets is designed to solve this problem.

Upvotes: 4

RichieHindle
RichieHindle

Reputation: 281475

What you're asking for is known as Comet. Plenty of server software and client libraries exist - see the linked Wikipedia page.

Upvotes: 5

Related Questions