Skip to content
Dashboard

WebSocket connection

computers.retrieve_ws(strid)
GET/computers/{id}/ws

Establish WebSocket for real-time bidirectional communication

ParametersExpand Collapse
id: str

WebSocket connection

import os
from tzafon import Lightcone

client = Lightcone(
    api_key=os.environ.get("TZAFON_API_KEY"),  # This is the default and can be omitted
)
client.computers.retrieve_ws(
    "id",
)
Returns Examples