3.2.15 • Published 1 year ago
capacitor-tcp-socket2 v3.2.15
capacitor-tcp-socket
A TCP Socket Plugin for capacitor
Install
npm install capacitor-tcp-socket
npx cap sync
API
connect(...)
connect(options: ConnectOptions) => Promise<ConnectResult>
Param | Type |
---|---|
options | ConnectOptions |
Returns: Promise<ConnectResult>
send(...)
send(options: SendOptions) => Promise<void>
Param | Type |
---|---|
options | SendOptions |
read(...)
read(options: ReadOptions) => Promise<ReadResult>
Param | Type |
---|---|
options | ReadOptions |
Returns: Promise<ReadResult>
disconnect(...)
disconnect(options: DisconnectOptions) => Promise<DisconnectResult>
Param | Type |
---|---|
options | DisconnectOptions |
Returns: Promise<DisconnectResult>
Interfaces
ConnectResult
Prop | Type |
---|---|
client | number |
ConnectOptions
Prop | Type |
---|---|
ipAddress | string |
port | number |
SendOptions
Prop | Type |
---|---|
client | number |
data | string |
encoding | string |
ReadResult
Prop | Type |
---|---|
result | string |
ReadOptions
Prop | Type | Description |
---|---|---|
client | number | |
expectLen | number | |
timeout | number | timeout in seconds. default: 10 only ios supports timeout. |
DisconnectResult
Prop | Type |
---|---|
client | number |
DisconnectOptions
Prop | Type |
---|---|
client | number |
3.2.13
1 year ago
3.2.12
1 year ago
3.2.15
1 year ago
3.2.14
1 year ago
3.2.9
1 year ago
3.2.8
1 year ago
3.2.7
1 year ago
3.2.6
1 year ago
3.2.11
1 year ago
3.2.10
1 year ago
3.2.5
1 year ago
3.2.4
1 year ago
3.2.3
1 year ago
3.2.2
1 year ago
3.2.1
1 year ago
3.2.0
1 year ago
3.1.0
1 year ago
3.0.1
1 year ago
3.0.0
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago