# tcp.io

> Simple Net tcp Server and Client

Latest version **0.0.8** (published 2015-04-14) · 0 weekly downloads

## Install

```sh
npm install tcp.io
pnpm add tcp.io
yarn add tcp.io
bun add tcp.io
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2015-04-14 |
| First published | 2015-04-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ... |
| Maintainers | yum |
| Keywords | tcp, nodejs tcp, tcp.io, net tcp |

## Links

- npm: https://www.npmjs.com/package/tcp.io
- npm.io page: https://npm.io/package/tcp.io

## Recent versions

- 0.0.8 (latest) — 2015-04-14
- 0.0.7 — 2015-04-13
- 0.0.6 — 2015-04-13
- 0.0.5 — 2015-04-13
- 0.0.4 — 2015-04-13
- 0.0.3 — 2015-04-13
- 0.0.2 — 2015-04-10
- 0.0.1 — 2015-04-10

## README

# tcp.io

## Server Example:

```js
var tcp =require("tcp.io");
var server = new tcp.server()
server.on(function(c){
    c.on("ping", function(data){
        console.log("Server Count Request:%s",data.count);
        data.count++;
        data.message +=data.count
        c.emit("pong",data)
    })
});

server.listen(1337,"localhost")
```

## Client Example:

```js
var tcp =require("tcp.io");
var client = new tcp.client()
client.connect(1337,"localhost");
client.emit("ping",{count:0,message:"Hello"}
);
client.on("pong", function(data){
    data.count++
    console.log("From Server Message :%s",data.message);
    data.message="New Hello"
    client.emit("ping",data);
})
```

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