Sharing¶
Share rich content over OTR, allow apps to have XMPP/OTR chat inside the app.
Requirements¶
- Secure
- Serverless (or more precisely, opaque to the XMPP server)
- Ability to share and discover arbitrary data types
- Fine grained control
Design¶
- Create data streams over OTR (using new TLVs for HTTP-like request/response)
- Support a restful API
- Follow the tent.io example: https://tent.io/docs
- Allow discovery of peer content
- Third-party apps as content handlers/providers
- Third-party apps can create XMPP/OTR chats, UI inside the app, communication handled by Gibberbot
Examples¶
- Peer A:
GET /gallery/albums/India-2012/index Request-Id: ...
- Peer B:
200 OK Request-ID: ... { path: "/albums/India-2012/sunset1.jpg", action: "new", size: 203992 }
- Peer A:
GET /gallery/albums/India-2012/thumbnail/sunset1.jpg Range: bytes=0-32767