Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RPCServer<SubResType>

Type parameters

  • SubResType

Hierarchy

  • RPCServer

Implements

Index

Constructors

constructor

  • new RPCServer(port: number, exporters?: Exporter<SubResType>[], conf?: T.SocketConf): RPCServer
  • Parameters

    • port: number
    • Default value exporters: Exporter<SubResType>[] = []
    • Default value conf: T.SocketConf = {}

    Returns RPCServer

Properties

Private closeHandler

closeHandler: T.CloseHandler

Private connectionHandler

connectionHandler: T.ConnectionHandler

Private errorHandler

errorHandler: T.ErrorHandler

Private exporters

exporters: Exporter<SubResType>[]

Private io

io: any = bsock.createServer()

Private port

port: number

Private visibility

visibility: T.Visibility

Private ws

ws: Server = http.createServer()

Methods

destroy

  • destroy(): Promise<void>

Protected initRPCs

  • initRPCs(socket: Socket): void
  • Parameters

    Returns void

Private startWebsocket

  • startWebsocket(): void
  • Returns void

Generated using TypeDoc