# dzhyun-connection

> 大智慧云平台连接模块

Latest version **1.0.9** (published 2022-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install dzhyun-connection
pnpm add dzhyun-connection
yarn add dzhyun-connection
bun add dzhyun-connection
```

## 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.9 |
| Published | 2022-10-28 |
| First published | 2017-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 667.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | jiagang |
| Maintainers | jiagang, super-dongw |
| Keywords | dzhyun, connection |

## Links

- npm: https://www.npmjs.com/package/dzhyun-connection
- Repository: https://github.com/huicloud/dzhyun-connection
- Homepage: https://github.com/huicloud/dzhyun-connection#readme
- Issues: https://github.com/huicloud/dzhyun-connection/issues
- npm.io page: https://npm.io/package/dzhyun-connection

## Dependencies (3)

- [ws](https://npm.io/package/ws.md) ^5.2.0
- [xhr2](https://npm.io/package/xhr2.md) ^0.1.4
- [event-target](https://npm.io/package/event-target.md) ^1.2.2

## Recent versions

- 1.0.9 (latest) — 2022-10-28
- 1.0.8 — 2019-05-10
- 1.0.7 — 2018-11-26
- 1.0.6 — 2018-06-20
- 1.0.5 — 2018-06-20
- 1.0.4 — 2018-06-19
- 1.0.3 — 2018-05-03
- 1.0.2 — 2017-07-07
- 1.0.1 — 2017-05-25
- 1.0.0 — 2017-05-25

## README

大智慧云平台连接模块, 支持Http和WebSocket
---

### 使用
1.global

    <script src="dzhyun-connection.min.js"></script>
    <script>
        var conn = new DzhyunConnection('ws://10.15.144.101/ws');
        conn.on('message', function(data) {
            ...
        });
        conn.request('/quote/dyna?qid=1&obj=SH000001&sub=0&output=json')
    </script>

2.requirejs

    <script src="require.js"></script>
    <script>
        require.config({
            paths: {
                connection: 'dist/dzhyun-connection.min' // connection路径
            }
        });
        require(['connection'], function(DzhyunConnection) {
            new DzhyunConnection('http://10.15.144.101/quote/dyna').request('qid=1&obj=SH000001&sub=0&output=json').on('message', function(data) {...})
        });
    </script>
    
3.nodejs
安装

    npm install dzhyun-connection

使用

    var DzhyunConnection = require('dzhyun-connection');
    ...

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