Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProtobufComponent

Hierarchy

  • ProtobufComponent

Implements

Index

Constructors

constructor

Properties

app

clientProtos

clientProtos: object

Type declaration

  • [key: string]: any

clientProtosPath

clientProtosPath: string

name

name: string = "__protobuf__"

protobuf

protobuf: Protobuf

serverProtos

serverProtos: object

Type declaration

  • [key: string]: any

serverProtosPath

serverProtosPath: string

version

version: string = ""

watchers

watchers: object

Type declaration

  • [key: string]: FSWatcher

Methods

decode

  • decode(key: string, msg: any): object

encode

  • encode(key: string, msg: any): Buffer

encode2Bytes

  • encode2Bytes(key: string, msg: any): Uint8Array

getProtos

  • getProtos(): object
  • Returns object

    • client: object
      • [key: string]: any
    • server: object
      • [key: string]: any
    • version: string

getVersion

  • getVersion(): string

onUpdate

  • onUpdate(type: string, path: string, event: string): void

setProtos

  • setProtos(type: string, path: string): void

stop

  • stop(force: boolean, cb: function): void