@xyzblocks/rpc-tcp
v1.0.12
Published
Remote Procedure Call (TCP/TLS)
Readme
RPC
Remote Procedure Call (TCP/TLS)
Installation
npm install @xyzblocks/rpc-tcp --save
API
TcpRpc extends Rpc
Properties
socket: net.Socket | tls.TLSSocket
Methods
close(): Promise<void>send(method: string, params: Array<any>): Promise<any>sendNotification(method: string, params: Array<any>): Promise<void>
TcpRpcClient
Properties
host: stringport: number
Methods
close(): Promise<void>connect(): Promise<void>connectWithRetry(interval: number, maxRetries: number): Promise<void>send(method: string, params: Array<any>): Promise<any>sendNotification(method: string, params: Array<any>): Promise<void>
TcpRpcServer
Properties
port: number
Methods
close(): Promise<void>listen(): Promise<void>send(method: string, params: Array<any>): Promise<Array<any>>sendNotification(method: string, params: Array<any>): Promise<void>sendSingle(ipAddress: string, method: string, params: Array<any>): Promise<any>sendSingleNotification(ipAddress: string, method: string, params: Array<any>): Promise<void>
TcpTlsRpcClient
Properties
host: stringport: number
Methods
close(): Promise<void>connect(): Promise<void>connectWithRetry(interval: number, maxRetries: number): Promise<void>send(method: string, params: Array<any>): Promise<any>sendNotification(method: string, params: Array<any>): Promise<void>
TcpTlsRpcServer
Properties
port: number
Methods
close(): Promise<void>listen(): Promise<void>send(method: string, params: Array<any>): Promise<Array<any>>sendNotification(method: string, params: Array<any>): Promise<void>sendSingle(ipAddress: string, method: string, params: Array<any>): Promise<any>sendSingleNotification(ipAddress: string, method: string, params: Array<any>): Promise<void>
