Package 

Class ZeroGpuSdk


  • 
    public final class ZeroGpuSdk
    
                        

    The thin, data-driven interpreter. It registers compiled engines once, loads assigned models once, and keeps a WebSocket session that mirrors the app lifecycle:

    • foreground → (re-)register and open a socket so the device is idle and ready for tasks;

    • background → close the socket (the backend marks the device inactive);

    • foreground again → a fresh register + socket.

    Transient drops while foregrounded auto-reconnect with backoff. A single OkHttpClient is shared across reconnections and only one socket is alive at a time (no hanging connections).