Skip to main content

Create Snapshots

snapshot_update

{
type: 'snapshot_update',
snapshots: [
{
created_at,
creator: { /* ... */ },
id,
links: { download }
name,
room: { /* ... */ }
}
]
}

snapshot

eyeson.send({ type: 'snapshot' });
info

Since eyeson-js version 1.8.8 you can use eyeson.core.comApi.getSnapshot(id, callback) function to fetch snapshot information with a new created download link.

import eyeson from '@eyeson/js';

eyeson.core.comApi.getSnapshot(id, data => {
if (data.error) {
console.error(data.error);
return;
}
console.log(data.links.download);
});