# cordova-plugin-zuozishu-threadtcp

> A cordova plugin, a JS version of Thread Tcp

Latest version **1.0.8** (published 2018-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-zuozishu-threadtcp
pnpm add cordova-plugin-zuozishu-threadtcp
yarn add cordova-plugin-zuozishu-threadtcp
bun add cordova-plugin-zuozishu-threadtcp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-09-06 |
| First published | 2018-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | wyne |
| Maintainers | wyne1986 |
| Keywords | cordova, tcp, cordova-ios, cordova-android |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-zuozishu-threadtcp
- Repository: https://github.com/wyne1986/cordova-plugin-zuozishu-threadtcp
- Homepage: https://github.com/wyne1986/cordova-plugin-zuozishu-threadtcp#readme
- Issues: https://github.com/wyne1986/cordova-plugin-zuozishu-threadtcp/issues
- npm.io page: https://npm.io/package/cordova-plugin-zuozishu-threadtcp

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-09-06
- 1.0.7 — 2018-09-05
- 1.0.6 — 2018-09-05
- 1.0.5 — 2018-09-05
- 1.0.4 — 2018-09-05
- 1.0.3 — 2018-09-05
- 1.0.2 — 2018-09-05
- 1.0.1 — 2018-09-05

## README

# cordova-plugin-zuozishu-threadtcp
cordova plugin tcp socket thread, just for android now,  ios wait for later

* develop eviroment in android@6.4.0

# API
* ThreadTcp.onConnected = function(){}  //it will be trigger when the connect success
* ThreadTcp.onClose = function(){}  //it will be trigger when the connect closed
* ThreadTcp.onError = function(){}  //it will be trigger when the connect error
* ThreadTcp.onWarning = function(){}  //it will be trigger when the connect get wrong message data
* ThreadTcp.onMessage = function(data){};  //when get remote message data, it will be trigger
* ThreadTcp.reconnecttime = 3000;  //auto reconnect time,set it before connect,default false/0, if set it, when get Error/Close Event will be auto reconnect
* ThreadTcp.connect(config,successFunction,errorFunction);  //connect to remote, config = ['address string default 127.0.0.1',port int default 8989,timeout int default 5000,pingTime int default 3000,pingText string default 'ping']
* ThreadTcp.sendMessage(data,successFunction,errorFunction);  //send message to remote

---
_Source: https://npm.io/package/cordova-plugin-zuozishu-threadtcp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
