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
In this case data is a JSONArray, one byte per element, so it may be called as follows:
window.tlantic.plugins.socket.sendBinary(function(){console.log('sent')},function(error){console.log('failed to send: '+error)},connectionId,[0x01,0x00,0x01,0xFD]);
The text was updated successfully, but these errors were encountered:
(Implemented for Android only)
Interface is:
sendBinary(successCallback, errorCallback, connectionId, data)
data is a JSONArray, one element per byte, e.g. [ 0x00, 0x01, 0x00, 0xFD ]
vararraydata=[77,67,71,80];varstringdata=String.fromCharCode.apply(null,arraydata);window.tlantic.plugins.socket.sendBinary(function(){console.log('sent')},function(error){console.log('failed to send: '+error)},connectionId,stringdata);
This is related to issue #53 where the same was requested for iOS.
(I don't know if the user who raised that issue also wanted receive support, but in my application I only need to send binary data).
I propose addition of a new method:
In this case data is a JSONArray, one byte per element, so it may be called as follows:
The text was updated successfully, but these errors were encountered: