IT博客汇
首页
精华
技术
设计
资讯
扯淡
权利声明
登录
注册
nodejs socket is connect
胡满超
发表于
2014-05-13 08:11:00
love
0
You can check socket is connect by net.socket._handle like this code:
var
obj =
new
net.socket;
if
(!obj._handle)
{
obj.connect(8080, '127.0.0.1',
function
() {
send
;
});
}
else
{
send
;
}
胡满超
2014-05-13 16:11
发表评论