Quoting [email protected] (2021-03-25 12:38:43)
> Similarly I saw a few mentions of HTTP and websocket stuff, but is
> there actually a way to use Capnproto over a websocket? I need none of
> that right now, but it's interesting to know what the options are.
Not out of the box in the C++ implementation; I did some preliminary
refactoring to enable this a while back but have yet to actually add the
relevant support. Someone would need to add an implementation of
MessageStream backed by a websocket:
https://github.com/capnproto/capnproto/blob/b5ab41ea033874cb3c144b9ad87e3442a297ed55/c%2B%2B/src/capnp/serialize-async.h#L36
(I just noticed that the comment on that class is bitrotten, since
at some point the functionality "above" got moved below...)
The relevant issue is here:
https://github.com/capnproto/capnproto/issues/1063
It wouldn't be a lot of work; I did something similar for the Go
implementation as a one-off for an app I was writing here:
https://github.com/zenhack/sandstorm-rendezvous/blob/master/websocket-capnp.go
...which took me < 10 min.
> Here is my project so far btw https://github.com/NyanCAD/SimServer
Looks like you accidentally committed some merge conflicts at the bottom
of the .capnp.
-Ian
--
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/161669843025.2215.8687884115398063000%40localhost.localdomain.