let socketdf = wx.createTCPSocket();
console.log('socketfd = ', socketdf);
socketdf.connect({
port: 80,
address: '192.168.1.104'
});
socketdf.onConnect(function (e) {
console.log('链接成功');
socketdf.write('debug data');
});
socketdf.onError((errret) => {
console.log('err ret=', errret);
});
https://developers.weixin.qq.com/miniprogram/dev/api/network/tcp/wx.createTCPSocket.html
本地没使用代理,也关闭了域名校验,实在是不理解