# @lykkex/subzero

> Socket-connection is abstract class over different realization of web socket connection.

Latest version **0.0.4** (published 2018-09-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lykkex/subzero
pnpm add @lykkex/subzero
yarn add @lykkex/subzero
bun add @lykkex/subzero
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-09-10 |
| First published | 2018-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andrey.zhylin, georg3mk, koroelvs, lykkex-corp, njannink, paulrumyantsevitr, sschegolev87 |

## Links

- npm: https://www.npmjs.com/package/@lykkex/subzero
- npm.io page: https://npm.io/package/@lykkex/subzero

## Recent versions

- 0.0.4 (latest) — 2018-09-10
- 0.0.3 — 2018-08-10
- 0.0.1 — 2018-08-10

## README

## Socket connection

Socket-connection is abstract class over different realization of web socket connection.

### Installing
    yarn add @lykkex/subzero
    npm i @lykkex/subzero

### Usage

    import {WampConnection} from '@lykkex/subzero-wamp';
    import {IConnectionOptions} from 'autobahn';
    import {SocketConnection} from '@lykkex/subzero';

    const options: IConnectionOptions = {};
    const wampProxy = new WampConnection(options);
    const socket = new SocketConnection(wampProxy);

### Methods

#### connect
Create connection using proxy passed to constructor
#### close
Close connection of proxy
#### isConnected
Return boolean whether connection is opened or closed
#### send
Send message to proxy

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