# @olemop/client-js

> 备忘：ws 和 wss 的区别在于 Protocol.strdecode，详看该段的内部注释

Latest version **0.0.59** (published 2019-03-21) · 0 weekly downloads

## Install

```sh
npm install @olemop/client-js
pnpm add @olemop/client-js
yarn add @olemop/client-js
bun add @olemop/client-js
```

## 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.59 |
| Published | 2019-03-21 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 279.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | manjiz |

## Links

- npm: https://www.npmjs.com/package/@olemop/client-js
- npm.io page: https://npm.io/package/@olemop/client-js

## Dependencies (4)

- [ws](https://npm.io/package/ws.md) ^6.1.4
- [@olemop/protobuf](https://npm.io/package/@olemop/protobuf.md) ^0.0.54
- [@olemop/protocol](https://npm.io/package/@olemop/protocol.md) ^0.0.59
- [wolfy87-eventemitter](https://npm.io/package/wolfy87-eventemitter.md) ^5.2.5

## Recent versions

- 0.0.59 (latest) — 2019-03-21
- 0.0.58 — 2019-03-20
- 0.0.55 — 2019-02-26
- 0.0.54 — 2019-02-21
- 0.0.52 — 2019-02-18
- 0.0.51 — 2019-02-14
- 0.0.50 — 2019-01-31
- 0.0.49 — 2019-01-30
- 0.0.48 — 2019-01-30
- 0.0.47 — 2019-01-29
- 0.0.45 — 2019-01-25
- 0.0.38 — 2019-01-22
- 0.0.36 — 2019-01-09
- 0.0.14 — 2018-07-30

## README

备忘：ws 和 wss 的区别在于 Protocol.strdecode，详看该段的内部注释

```javascript
return String.fromCharCode.apply(null, array)
// -===== for ws: DIFF by @olemop/core template build.js/build.js.wss，除协议符，两者就这里不同，实际上，上面就够了 =====-
// let res = ''
// const chunk = 8 * 1024
// for (let i = 0; i < array.length / chunk; i++) {
//   res += String.fromCharCode.apply(null, array.slice(i * chunk, (i + 1) * chunk))
// }
// res += String.fromCharCode.apply(null, array.slice(i * chunk))
// return res
```

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