mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-13 22:24:25 +02:00
use new api
This commit is contained in:
@ -270,14 +270,13 @@
|
||||
}
|
||||
|
||||
run() {
|
||||
var me, proto, value;
|
||||
var me, value;
|
||||
me = this;
|
||||
value = this.editor.getValue().trim();
|
||||
if (!(value && value !== "")) {
|
||||
return;
|
||||
}
|
||||
proto = window.location.protocol === "https:" ? "wss://" : "ws://";
|
||||
this.socket = new WebSocket(proto + this._api.HOST + "/system/apigateway?ws=1");
|
||||
this.socket = this.stream();
|
||||
this.socket.onopen = function() {
|
||||
//send data to server
|
||||
return me.socket.send(JSON.stringify({
|
||||
|
Reference in New Issue
Block a user