1.0.12 • Published 7 years ago

@xyzblocks/rpc-tcp v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago