Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GrpcServer

Index

Constructors

constructor

Properties

Private Optional grpcService

grpcService: GrpcService

Private logger

logger: Logger

Private server

server: any

Methods

addXudInitService

addXudService

  • addXudService(service: Service): void

close

  • close(): Promise<void>

Private generateCertificate

  • generateCertificate(tlsCertPath: string, tlsKeyPath: string): Promise<object>
  • Generate a new certificate and save it to the disk

    Parameters

    • tlsCertPath: string
    • tlsKeyPath: string

    Returns Promise<object>

    the cerificate and its private key

listen

  • listen(port: number, host: string, tlsCertPath: string, tlsKeyPath: string): Promise<void>
  • Start the server and begin listening on the provided port

    Parameters

    • port: number
    • host: string
    • tlsCertPath: string
    • tlsKeyPath: string

    Returns Promise<void>

    true if the server started listening successfully, false otherwise

Generated using TypeDoc