admin管理员组文章数量:1346070
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 ining 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 ?
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 ining 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 ?
Share Improve this question asked Jun 13, 2009 at 22:56 Dan SosedoffDan Sosedoff 2,8695 gold badges28 silver badges35 bronze badges 1- 3 You are not going to get tcp/sockets with JavaScript. You are stuck with http. – epascarello Commented Jun 13, 2009 at 23:07
2 Answers
Reset to default 5What you're asking for is known as Comet. Plenty of server software and client libraries exist - see the linked Wikipedia page.
WebSockets is designed to solve this problem.
本文标签: socketsJavascript TCP connection to serverStack Overflow
版权声明:本文标题:sockets - Javascript TCP connection to server - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743764245a2534946.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论