Serve an asset
client.assets.serve(AssetServeParams { url } query, RequestOptionsoptions?): void
GET/v1/assets/serve
Stream a file given an mxc://, localmxc://, or file:// URL. Downloads first if not cached. Supports Range requests for seeking in large files.
Serve an asset
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: process.env['BEEPER_ACCESS_TOKEN'], // This is the default and can be omitted
});
await client.assets.serve({ url: 'x' });