Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerTime

Manages and synchronizes the time to the servers time

Hierarchy

  • ServerTime

Index

Constructors

Methods

Constructors

constructor

  • Returns ServerTime

Methods

getTime

  • getTime(): number
  • Returns the current approximated server time

    Returns number

handleResponse

  • handleResponse(serverTime: any): void
  • Handles the response from the server which included a timestamp

    Parameters

    • serverTime: any

    Returns void