Hierarchy

  • ServerToClientEvents

Properties

automation/fetchAllResponse: ((automations) => void)

Type declaration

automation/fetchRunningResponse: ((automations) => void)

Type declaration

automation/processingError: ((error) => void)

Type declaration

config/locoDeleted: ((address) => void)

Type declaration

    • (address): void
    • Parameters

      • address: number

      Returns void

config/locoEdited: ((oldAddress, newAddress, name) => void)

Type declaration

    • (oldAddress, newAddress, name): void
    • Parameters

      • oldAddress: number
      • newAddress: number
      • name: string

      Returns void

config/newLocoAdded: ((loco) => void)

Type declaration

    • (loco): void
    • Parameters

      • loco: string

      Returns void

metadata/handshake: ((appName, version) => void)

Type declaration

    • (appName, version): void
    • Parameters

      • appName: string
      • version: string

      Returns void

metadata/initialState/locos: ((locos) => void)

Type declaration

    • (locos): void
    • Parameters

      • locos: string[]

      Returns void

metadata/initialState/trackPower: ((state) => void)

Type declaration

    • (state): void
    • Parameters

      • state: boolean

      Returns void

metadata/initialState/turnouts: ((packet) => void)

Type declaration

routes/routeUpdate: ((route) => void)

Type declaration

    • (route): void
    • Parameters

      Returns void

routes/setRouteComponents: ((destinations, turnouts, links) => void)

Type declaration

    • (destinations, turnouts, links): void
    • Parameters

      • destinations: number[]
      • turnouts: number[]
      • links: number[]

      Returns void

routes/turnoutUpdate: ((identifier, state) => void)

Type declaration

    • (identifier, state): void
    • Parameters

      Returns void

routes/unsetRouteComponents: ((destinations, turnouts, links) => void)

Type declaration

    • (destinations, turnouts, links): void
    • Parameters

      • destinations: number[]
      • turnouts: number[]
      • links: number[]

      Returns void

throttle/directionUpdate: ((identifier, direction, id?) => void)

Type declaration

    • (identifier, direction, id?): void
    • Parameters

      Returns void

throttle/functionUpdate: ((identifier, functionNum, state) => void)

Type declaration

    • (identifier, functionNum, state): void
    • Parameters

      Returns void

throttle/speedUpdate: ((identifier, speed, socketId, throttleNum) => void)

Type declaration

    • (identifier, speed, socketId, throttleNum): void
    • Parameters

      • identifier: LocoIdentifier
      • speed: number
      • socketId: string
      • throttleNum: number

      Returns void

throttle/trackPowerUpdate: ((state, socketId) => void)

Type declaration

    • (state, socketId): void
    • Parameters

      • state: boolean
      • socketId: string

      Returns void

Generated using TypeDoc