-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Hi,
I'm trying to port a working app from electron (node based) to cordova. This app makes intesive usage of jBinary and works really fine on electron.
What i found is that BROWSER version does not generate the same jBinary::view type as when using NODE version. For the the same code;
var writeBuffer = new Buffer(2048);
var writeFrame = new jBinary(writeBuffer, bdFrameStruct);
NODE version ->
var jBinary = require('jbinary'); is generating view as 'jDataView'
writeFrame
jBinary {view: jDataView, contexts: Array[0], typeSet: Object, cacheKey: "jBinary.Cache.1"}
BROWSER version ->
<script type="text/javascript" src="js/jdataview.js"></script>
<script type="text/javascript" src="js/jbinary.js"></script> is generating view as 'e'
writeFrame
h {view: e, contexts: Array[0], typeSet: Object, cacheKey: "jBinary.Cache.1"}
How do can I get the same result as in NODE using BROWSER?
Or maybe there is a better way to use it on cordova?
Thanks.