You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
In my ionic project, it can't work normally.When I call this method, he didn't give me any return values.
setInterval(function () {
var buffer = new ArrayBuffer(12);
var x = new Int32Array(buffer);
x[1] = 1234;
var slice = buffer.slice(4);
var y = new Int32Array(slice);
console.log(x[1]);
console.log(y[0]);
x[1] = 6789;
alert($scope.socketId);
chrome.sockets.udp.send($scope.socketId, buffer,
'192.168.0.100', 8888, function(sendInfo) {
alert("sent " + sendInfo.bytesSent);
});
}, 5000);
The text was updated successfully, but these errors were encountered:
In my ionic project, it can't work normally.When I call this method, he didn't give me any return values.
setInterval(function () {
var buffer = new ArrayBuffer(12);
var x = new Int32Array(buffer);
x[1] = 1234;
var slice = buffer.slice(4);
var y = new Int32Array(slice);
console.log(x[1]);
console.log(y[0]);
x[1] = 6789;
alert($scope.socketId);
chrome.sockets.udp.send($scope.socketId, buffer,
'192.168.0.100', 8888, function(sendInfo) {
alert("sent " + sendInfo.bytesSent);
});
}, 5000);
The text was updated successfully, but these errors were encountered: