Comments (11)
可以的,不过要注意https证书的问题,这个就自行解决了。
from sekiro-open.
可以的,不过要注意https证书的问题,这个就自行解决了。
release的1.2版本,说是只配一个5620端口,我用wireshark抓了5620端口的包,返回400错误啊,你确定可以?
from sekiro-open.
是的。
请使用最简单的HTML + JS来测试。
<html>
<script src="https://sekiro.virjar.com/sekiro-doc/assets/sekiro_web_client.js"></script>
<script>
function guid() {
function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}
var client = new SekiroClient("ws://localhost:5620/register?group=ws-group-2&clientId=" + guid());
client.registerAction("clientTime", function (request, resolve, reject) {
resolve("SekiroTest:" + new Date());
});
client.registerAction("executeJs", function (request, resolve, reject) {
var code = request['code'];
if (!code) {
reject("need param:{code}");
return;
}
code = "return " + code;
console.log("executeJs: " + code);
try {
var result = new Function(code)();
resolve(result);
} catch (e) {
reject("error: " + e);
}
});
</script>
</html>
from sekiro-open.
是的。
请使用最简单的HTML + JS来测试。
from sekiro-open.
var client = new SekiroClient("ws://localhost:5620/register?group=ws-group-2&clientId=" + guid());
修改一下这里。
from sekiro-open.
文档请参考 https://sekiro.virjar.com/sekiro-doc
from sekiro-open.
好吧,我是看了这里http的api都是business-demo,
我看例子里的websocket是new SekiroClient("wss://sekiro.virjar.com/business/register?group=ws-group-2&clientId=" + guid());
所以我想着demo的websocket就是new SekiroClient("wss://127.0.0.1/business-demo/register?group=ws-group-2&clientId=" + guid());了
from sekiro-open.
注册接口不太一样。
from sekiro-open.
可以的,不过要注意https证书的问题,这个就自行解决了。
还请问一下,怎么加证书呢?需要改代码么?
from sekiro-open.
Nginx + https证书这种,和sekiro无关的。
from sekiro-open.
我改下,businiess-demo我也加上,保持和文档同步
from sekiro-open.
Related Issues (20)
- pool queue empty for group:test HOT 3
- 参数中的clientId没起作用 HOT 2
- 传输文件问题。 HOT 2
- 有没计划用纯okhttp写个客户端. HOT 1
- 商业版如何收费 HOT 1
- 处理io.netty的问题 HOT 5
- 模拟器中用不了吗?
- sekiro心跳显示连接成功,但是客户端却一直掉线(channel.isActive() == false) HOT 5
- /sekiro-api/sekiro-server/allocate,接口返回的域名错误!少:
- 设备无限重连 HOT 1
- 运行demoServer后,多次请求接口,java程序内存占用会一直升高,且没有下降的趋势,想请教一下大佬是否存在内存泄露? HOT 13
- 当我在服务器部署完以后,需要备案? HOT 9
- Uncaught TypeError: this.socket.onmessage is not a function HOT 4
- Failed to execute goal on project sekiro-open-demo HOT 1
- Frida配合sekiro 参数params是否有长度限制 HOT 2
- 如何设置超时时间 HOT 2
- pkg not start with legal magic: 5211883372140375601 expected:8315170387645116465 HOT 5
- sekiro: create connection failed,reconnect after 2s HOT 17
- 调用时传参数自动排序 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sekiro-open.