WebSocket connection
client.computers.retrieveWs(stringid, RequestOptionsoptions?): void
GET/computers/{id}/ws
Establish WebSocket for real-time bidirectional communication
Parameters
id: string
WebSocket connection
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.retrieveWs('id');