add json api to cffi and expose it in dc node

This commit is contained in:
Simon Laux
2022-06-12 20:33:48 +02:00
parent 0213bb372f
commit 638d2ff932
12 changed files with 399 additions and 11 deletions

11
node/segfault.js Normal file
View File

@@ -0,0 +1,11 @@
const {default:dc} = require("./dist")
const ac = new dc("testdtrdtrh")
ac.startJSONRPCHandler(console.log)
setTimeout(()=>{
ac.close() // This segfaults -> TODO Findout why?
console.log("still living")
}, 1000)