Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

"send" is no response in ionic #21

Open
wenweixiao opened this issue Mar 23, 2017 · 1 comment
Open

"send" is no response in ionic #21

wenweixiao opened this issue Mar 23, 2017 · 1 comment

Comments

@wenweixiao
Copy link

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);

@wenweixiao
Copy link
Author

This sockets has been created,and I can get the information by the method "chrome.sockets.udp.getInfo".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant