UDP 预览不可以发送吗?

发布于 7 年前作者 rzhu7228 次浏览最后编辑 7 年前来自 issues
const app = getApp()
Page({
  startDiscovery:function()
  {
      console.log('startDiscovery')
      var that = this;
      that.udpSocket = wx.createUDPSocket();
      that.udpSocket.bind(3333);
      setInterval(function(){
        that.udpSocket.send({
          address'192.168.2.106',
          port9999,
          message"hello world!"
        });
      },2000);
     
   
    
  }
})
1 回复
xzhang
xzhang1 楼5 年前

具体是什么问题?