# @ostis/sc-network

> JavaScript implementation of sctp (ostis) protocol

Latest version **0.1.4** (published 2017-07-22) · 0 weekly downloads

## Install

```sh
npm install @ostis/sc-network
pnpm add @ostis/sc-network
yarn add @ostis/sc-network
bun add @ostis/sc-network
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2017-07-22 |
| First published | 2017-06-08 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Denis Koronchik |
| Maintainers | deniskoronchik |

## Links

- npm: https://www.npmjs.com/package/@ostis/sc-network
- Repository: https://github.com/ostis-dev/sc-network-js
- Homepage: https://github.com/ostis-dev/sc-network-js#readme
- Issues: https://github.com/ostis-dev/sc-network-js/issues
- npm.io page: https://npm.io/package/@ostis/sc-network

## Dependencies (4)

- [q](https://npm.io/package/q.md) ^1.5.0
- [text-encoding](https://npm.io/package/text-encoding.md) ^0.6.4
- [@ostis/sc-core](https://npm.io/package/@ostis/sc-core.md) ^0.1.1
- [@types/text-encoding](https://npm.io/package/@types/text-encoding.md) 0.0.30

## Recent versions

- 0.1.4 (latest) — 2017-07-22
- 0.1.3 — 2017-07-17
- 0.1.1 — 2017-06-11
- 0.1.0 — 2017-06-08

## README

## Usage
```sh
npm install --save @ostis/sc-network-js
```

Use in TypeScript:
```TypeScript
import { SctpClient, ScType, ScAddr } from '@ostis/sc-network';

...

function onConnect() {
  console.log('Connect to sctp server');
}

function onDisconnect() {
  console.log('Disconnect from sctp server');
}

function onError() {
  console.log('Error in Sctp connection');
}

const client = new SctpClient('http://localhost/ws', 500,
                              onConnect,
                              onDisconnect,
                              onError);

...

```


## Changelog

### v0.1.4
- Improve SetLinkContent function for a numbers

### v0.1.3
- Fix construction iterator
- Fix return values of ScAddr

### v0.1.2
- Some interfaces export fixed

### v0.1.1
- Implement common functionality for websockets support

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