rpclibrary › Globals › “Backend” › RPCServer
▪ SubResType
+ 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
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
▸ 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