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 346fab7f26
commit e12aeb7bd8
11 changed files with 397 additions and 10 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)