Skip to content
Dashboard

Stream events

client.computers.retrieveEvents(stringid, RequestOptionsoptions?): void
GET/computers/{id}/events

Stream real-time events using Server-Sent Events (SSE)

ParametersExpand Collapse
id: string

Stream events

import Lightcone from '@tzafon/lightcone';

const client = new Lightcone({
  apiKey: process.env['TZAFON_API_KEY'], // This is the default and can be omitted
});

await client.computers.retrieveEvents('id');
Returns Examples