Quoting Ryan Patterson (2021-03-25 22:04:01)

>    This might not be what you're looking for, but I took the
>    fasterthanlime fork of capnp-ts and upgraded all of the dependencies,
>    and in my test application I was able to use a go capnp server with a
>    Typescript capnp client over web sockets. Relevant links:
>      * [1]my updated fork of capnp-ts
>      * [2]glue between capnp-ts and web sockets
>      * [3]the original work on capnp-ts RPC (to whom the credit is owed)

How did you build this, and how well does it actually work? I tried forking the
fasterthanlime fork it myself, but it looked to me like it was left in a broken
state; I fixed a few things on my own fork[1], but when running tsc
there are still a couple errors:

    $ tsc
    packages/capnpc-ts/lib/generators.ts:931:9 - error TS2345: Argument of type 
'undefined' is not assignable to parameter of type 'readonly Expression[]'.

    931         __ // arguments
                ~~

    packages/capnpc-ts/lib/generators.ts:985:17 - error TS2345: Argument of 
type 'undefined' is not assignable to parameter of type 'readonly Expression[]'.

    985                 __ // parameters
                        ~~
I assume those had been placeholders. Did you just plow ahead using the
generated code anyway (in which case I assume your schema didn't trigger
that case), or are you doing something that I'm missing when building?

I had a heck of a time trying to get the gulpfile to work, and ended up
just giving up, since running tsc from the top level seemed to work with
some tweaking, modulo the obviously legitimate errors above.

-Ian

[1]: https://github.com/zenhack/capnp-ts/tree/rpc

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/161695813031.11634.10960351423316531381%40localhost.localdomain.

Reply via email to