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

send() with callback fails #3

Open
lapo-luchini opened this issue Jun 2, 2015 · 0 comments
Open

send() with callback fails #3

lapo-luchini opened this issue Jun 2, 2015 · 0 comments

Comments

@lapo-luchini
Copy link

On Cordova 5.0.0 with example code I get:

chrome.sockets.udp.send(socketId, buf, '127.0.0.1', 22137 /*, function (sendInfo) {
    console.log('sent ' + sendInfo.bytesSent);
}*/ );

I/chromium( 4850): [INFO:CONSOLE(307)] "Error in Error callbackId: ChromeSocketsUdp1732631474 : TypeError: Cannot read property 'message' of undefined", source: file:///android_asset/www/cordova.js (307)

It works ok if I comment out the callback.

yvni added a commit to yvni/cordova-plugin-chrome-apps-sockets-udp that referenced this issue Apr 20, 2017
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