Skip to content

xiabingwu/tars-node-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

实现原理

Tars.js

使用方法

  • 代理部署(请作为一个tars应用服务部署)
const proxy=require('tars-node-proxy');
const server=proxy({
    proxyIp:process.env.IP,// 默认为tars web平台,servant ip
    proxyPort:process.env.PORT//默认为tars web平台,servant port
});
  • 代理关联
//伪代码
const Tars      = require("@tars/tars").client;
const prx      = Tars.stringToProxy("应用服务3proxy", "应用服务3obj@tcp -h 应用服务4ip -p 应用服务4port -t 60000");

About

tars服务代理

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published