drupflare/worker - v1.0.4
    Preparing search index...

    Class ParkSockets

    The sockets one interpreter holds, by token resource id; per object, as pib_run has no request shutdown. The interpreter drop must call closeAll.

    Index
    • get minted(): ReadonlySet<number>

      the resource ids of the tokens whose sockets this object holds

      Returns ReadonlySet<number>

    • closes every held socket and forgets them

      Returns Promise<void>

    • through the LF, terminator included (readLine strips it); null at EOF

      Parameters

      • id: number

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • exactly max bytes via readN, as a self-describing reply needs; null at EOF

      Parameters

      • id: number
      • max: number

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • writes the chunk and returns its length; 0 for an unknown id

      Parameters

      • id: number
      • chunk: Uint8Array

      Returns Promise<number>