kicksdk (JavaScript)
    Preparing search index...

    Class Session

    One connection's protocol. Each method returns the actions to carry out. now is whole milliseconds from a clock that only goes forward (Math.floor(performance.now()), or Date.now()).

    Index
    • A session for these feeds.

      Parameters

      • channels: string[]

      Returns Session

    • Returns void

    • The socket closed.

      Returns any

    • When to call tick next, in ms, or undefined.

      Returns number | undefined

    • Returns void

    • Whether Kick accepted the connection.

      Returns boolean

    • Whether a feed is subscribed.

      Parameters

      • channel: string

      Returns boolean

    • The socket opened.

      Parameters

      • token: string
      • now: number

      Returns any

    • A text frame arrived.

      Parameters

      • text: string
      • now: number

      Returns any

    • A new token, after a refresh_token action.

      Parameters

      • token: string
      • now: number

      Returns any

    • The clock reached deadline().

      Parameters

      • now: number

      Returns any