<isd>
Is it possible to for an app to recieve powerbox requests for capnp apis (not HTTP based) while using sandstorm-http-bridge to translate websesion -> http?
<isd>
I've kinda come to the conclusion that trying to finish my go wrapping of websession is mostly a waste of time, but without it talking to the rest of the A
<isd>
API is a bit awkward.
<isd>
kentonv: ^
<kentonv>
isd, I think currently you can't export capnp APIs if you use sandstorm-http-bridge, though it's been a year since I worked on it so I don't totally remember
<isd>
I certainly can't figure out how. You can't implement requestSession and I don't see relevant docs. I'm going to open an issue.
<isd>
I'm kinda thinking to myself that we should basically assume every app is going to use sandstorm-http-bridge; websession is a pain to talk to even when you have a capnp library, and doing so means you can't use basically any of the available libraries for web apps in your language, unless you want to write a whole bunch of glue code.
<isd>
At a certain point I decided getting the Go wrappers to be robust was just not worth the effort.
<isd>
Alternatively we could just provide a capnp interface that mapped more directly to HTTP.
<kentonv>
yes, I would like for http-bridge to support exporting capnp caps, just haven't figured out how or done the work yet.
<isd>
Hm, for powerbox requests and offers you can just do bridge.getSessionContext(), so I guess the only bit is how to restore the caps?
<isd>
Maybe we could add a method to SandstormHttpBridge to provide an object to which it can delegate calls to MainView.restore/drop?