1.0.12 • Published 5 years ago

@xyzblocks/rpc-tcp v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

RPC

Remote Procedure Call (TCP/TLS)

Build Status

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: string
  • port: 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: string
  • port: 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>
1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago