tree: 5f3a7f2d77027b73db79050bbbfd344de4e94e71 [path history] [tgz]
  1. runtime/
  2. scripts/
  3. src/
  4. worker/
  5. .gitignore
  6. .npmignore
  7. .prettierignore
  8. index.d.ts
  9. index.js
  10. jest-integration.config.json
  11. LICENSE
  12. package.json
  13. README.md
  14. tsconfig.json
  15. tslint.json
packages/@weex/plugins/debug-server/README.md

@ali/mp-remote-debug-server

Remote debug server for Taobao MiniApp

index.d.ts

import { Socket } from "net";

interface DevtoolOptions {
  channelId: string
  port: number
  ip: string
  [key: string]: any
}

interface Devtool extends EventEmitter {
  /**
   * 关闭Devtool服务
   *
   * @memberof Devtool
   */
  close ():void
  /**
   * 获取生成的socket地址
   *
   * @type {{
   *     entry: string
   *     inspector: string
   *     native: string
   *     debugger: string
   *   }}
   * @memberof Devtool
   */
  socket: {
    entry: string
    inspector: string
    native: string
    debugger: string
  }
  /**
   * 获取Runtime托管的地址
   *
   * @type {string}
   * @memberof Devtool
   */
  runtime: string
}

declare module '@ali/switchboard' {
  /**
   * 用于启动Devtool服务接口
   *
   * @export
   * @param {DevtoolOptions} options
   * @returns {Devtool}
   */
  export function start (options: DevtoolOptions): Devtool
}