1.2.0 • Published 3 years ago

@gdyfe/rop-client v1.2.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

Rop Client

基于 typescript 重写的 ROP 客户端

usage

直接引入

dist/index.js 取出后,在工程内引用,或者使用 <script> 标签全局引入

import ROP from '***.js'

const rc = new ROP({
  ICS_ADDR: '*',
  ROP_FLASH_SITE: '*',
  PORT: xxxx,
  SSL_PORT: xxxx
})

rc.On('*', () => {})

NPM 安装

sudo npm install @gdyfe/rop-client --save
sudo yarn add @gdyfe/rop-client
import ROP from '@gdyfe/rop-client'

const rc = new ROP({
  ICS_ADDR: '*',
  ROP_FLASH_SITE: '//*'
})

rc.On('*', () => {})