Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fie-plugin-qnproxy

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fie-plugin-qnproxy

fie-plugin-qnproxy description

  • 0.3.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

fie-plugin-qnproxy

qnproxy server端,以ws形式透出客户端底层能力服务到连入用户端。

使用说明

该款插件基于fie工程化解决方案,更多资料请参考FIE前端工程化工具-github

step1 基本环境准备

// 安装fie工程化工具
$ npm install fie -g --registry=https://registry.npm.taobao.org

// 安装qnproxy插件
$ fie install plugin-qnproxy

step2 服务启动

// 启动qnproxy插件
// 如遇异常,请切换至8.x稳定版本node
$ fie qnproxy run

$ fie qnproxy help

启动成功后弹出的代理页面以及自动加载sdk文件

  • 移动端://g.alicdn.com/x-bridge/qap-sdk/2.2.7/qn.js
  • PC端://g.alicdn.com/sj/qn/jssdk-ex-debug.js

sdk自定义配置:在url增加参数sdk='//127.0.0.1:8080/xxx.sdk.js' 端口自定义配置:url增加参数wsport=3333

step3 加载服务

服务启动后,我们需要将页面加载到对应的千牛插件中,比如你是“xx商品”插件,那么你需要手动打开千牛“xx商品”,然后打开控制台,location.href="你得到的代理地址",完成服务嵌入,成功之后会看到日志输出。

关于异常

如果出现ws服务无法访问的情况
  • 请排查本地安全策略,如防火墙、安全软件是否有网络连接限制等,另外请用管理员身份启动命令行工具
  • 请务必保障在同网段使用,ping命令进行调试

其他 - 在套件/插件里面使用

const fieModule = require('fie-api').module;
const qnproxy = yield fieModule.get('plugin-qnproxy');
yield qnproxy.run(fie, {clientArgs: ['some-args'], clientOptions: { a: 2, b: 2}});

FAQs

Package last updated on 11 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc