我怎样才能在从JavaScript的TCP套接字通信吗? [英] How can I communicate over TCP sockets from JavaScript?

查看:131
本文介绍了我怎样才能在从JavaScript的TCP套接字通信吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想怎么限制它是AJAX应用程序有轮询更新时,这将是理想的是javascript才能够建立一个真正的双向连接到服务器。我不知道是否有一个浏览器插件,可以使一个TCP连接,这样我可以传递数据流入和流出的浏览器插件的整合的JavaScript的一些方法。

I'm thinking about how limiting it is for AJAX apps to have to poll for updates, when what would be ideal is for javascript to be able to set up a real two way connection to the server. I'm wondering if there is some method of integrating javascript with a browser plugin that can make a tcp connection so that I could pass data into and out of the browser plugin.

推荐答案

下面是一个类似的方法实现:

Here is an implementation with a similar approach:

它使用Java Applet和桥梁的API给JavaScript,有趣的......

It uses a Java Applet and bridges its API to JavaScript, interesting...

在这里,另一个问题:

这一次是ActionScript 3的Socket API的封装器,桥接成JavaScript ...

This one is a wrapper of the Actionscript 3 Socket API, bridged to JavaScript...

这篇关于我怎样才能在从JavaScript的TCP套接字通信吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆