Hierarchy

Index

Constructors

constructor

Properties

hostsService

hostsService: HostsService

output

output: Dictionary<string>

Represents the raw strings that should be written to the files.

serviceName

serviceName: string = this.constructor.name

settings

settings: Dictionary<IStreamlabelSettings>

Represents settings which are stored on the server

socket

socket: Socket

subscriptions

subscriptions: Dictionary<IStreamlabelActiveSubscriptions>

Holds info about currently active subscribers

trainInterval

trainInterval: number

userService

userService: UserService

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

Static instance

  • get instance(): any

Methods

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

getSettingsForStat

  • getSettingsForStat(statname: string): any

init

  • init(): void

Protected mounted

  • mounted(): void

onUserLogin

  • onUserLogin(): void

restartSession

  • restartSession(): Promise<Boolean>

setSettingsForStat

subscribe

unsubscribe

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void

Object literals

trains

trains: object

Holds data about the currently running trains. Will be updated by socket events and be used to generate output.

donation

donation: object

counter

counter: number = 0

donationTrain

donationTrain: boolean = true

mostRecentAmount

mostRecentAmount: null = null

mostRecentEventAt

mostRecentEventAt: null = null

mostRecentName

mostRecentName: null = null

setting

setting: string = "train_tips"

totalAmount

totalAmount: number = 0

follow

follow: object

counter

counter: number = 0

mostRecentEventAt

mostRecentEventAt: null = null

mostRecentName

mostRecentName: null = null

setting

setting: string = "train_twitch_follows"

subscription

subscription: object

counter

counter: number = 0

mostRecentEventAt

mostRecentEventAt: null = null

mostRecentName

mostRecentName: null = null

setting

setting: string = "train_twitch_subscriptions"