MobileChromeApps / cordova-plugin-chrome-apps-sockets-udp

BSD 3-Clause "New" or "Revised" License
80 stars 40 forks source link

cannot read property 'sockets' of undefined in ionic #12

Closed rcho19 closed 8 years ago

rcho19 commented 8 years ago

this is my code: chrome.sockets.udp.create({}, function(socketInfo) { // The socket is created, now we can send some data var socketId = socketInfo.socketId; chrome.sockets.udp.send(socketId, arrayBuffer, '127.0.0.1', 1337, function(sendInfo) { console.log("sent " + sendInfo.bytesSent); }); });