node-capnp
node-capnp copied to clipboard
WASM for hybrid implementation?
It seems like this implementation is suffering from the bad interaction between c++ and javascript. FWIW, it may be possible to compile the serialization and rpc core to WASM (maybe some extra c++ wrapper code here?), then the interfaces are exposed natively to javascript.
Have you had a look at https://github.com/jdiaz5513/capnp-ts/ ?
...rpc support is still not finished (but partially implemented), but that's going to be the better way forward.