Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_backend_.rpcserver.md 2.9KB

rpclibrary“Backend”RPCServer

Class: RPCServer <SubResType>

Type parameters

SubResType

Hierarchy

  • RPCServer

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new RPCServer(port: number, exporters: Exporter‹SubResType›[], conf: T.SocketConf): RPCServer

Defined in Backend.ts:19

Parameters:

Name Type Default
port number -
exporters Exporter‹SubResType›[] []
conf T.SocketConf {}

Returns: RPCServer

Properties

Private closeHandler

closeHandler: T.CloseHandler

Defined in Backend.ts:17


Private connectionHandler

connectionHandler: T.ConnectionHandler

Defined in Backend.ts:19


Private errorHandler

errorHandler: T.ErrorHandler

Defined in Backend.ts:18


Private exporters

exporters: Exporter‹SubResType›[]

Defined in Backend.ts:23


Private io

io: any = bsock.createServer()

Defined in Backend.ts:15


Private port

port: number

Defined in Backend.ts:22


Private visibility

visibility: T.Visibility

Defined in Backend.ts:16


Private ws

ws: Server = http.createServer()

Defined in Backend.ts:14

Methods

destroy

destroy(): Promise‹void›

Implementation of Destroyable

Defined in Backend.ts:80

Returns: Promise‹void›


Protected initRPCs

initRPCs(socket: Socket): void

Defined in Backend.ts:73

Parameters:

Name Type
socket Socket

Returns: void


Private startWebsocket

startWebsocket(): void

Defined in Backend.ts:57

Returns: void