Class WebSocketStreamQueue

WebSocketStreamQueue can have 3 states regarding the head and the tail:

  • if (head == null && head === tail) then the queue is empty
  • if (head != null && head === tail) then the queue has 1 item
  • if (head != null && head !== tail) then the queue has 2 or more items

Hierarchy

  • WebSocketStreamQueue

Constructors

Properties

_byteLength: number
_count: number
_length: number
head?: WebSocketStreamQueueItem
tail?: WebSocketStreamQueueItem

Accessors

Methods

  • Returns the data of the head and removes the head from the queue. If the queue is empty, then undefined is returned.

    Returns undefined | Uint8Array

Generated using TypeDoc