capacitor-tcp-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

capacitor-tcp-client

send and receive data

Install

npm install capacitor-tcp-client
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


connect(...)

connect(options: { ipAddress: string; port: number; }) => Promise<{ success: boolean; client: number; }>
Param Type
options { ipAddress: string; port: number; }

Returns: Promise<{ success: boolean; client: number; }>


disconnect(...)

disconnect(options: { client: number; }) => Promise<{ success: boolean; client: number; }>
Param Type
options { client: number; }

Returns: Promise<{ success: boolean; client: number; }>


send(...)

send(options: { data: string; client: number; }) => Promise<{ result: any; }>
Param Type
options { data: string; client: number; }

Returns: Promise<{ result: any; }>


sendRaw(...)

sendRaw(options: { data: string; client: number; }) => Promise<{ result: any; }>
Param Type
options { data: string; client: number; }

Returns: Promise<{ result: any; }>


onData(...)

onData(options: { client: number; }) => Promise<{ result: any; }>
Param Type
options { client: number; }

Returns: Promise<{ result: any; }>


Package Sidebar

Install

npm i capacitor-tcp-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

27.6 kB

Total Files

25

Last publish

Collaborators

  • loccor