js_reverse/zy-rpc/WebSocket_text.js
2022-03-16 17:39:43 +08:00

16 lines
274 B
JavaScript

!function () {
window.ayf = e;
var ws = new WebSocket("ws://127.0.0.1:9999");
ws.onopen = function (evt) {
};
ws.onmessage = function (evt) {
console.log(window.ayf.RSA.evcrypt(evt.data));
};
ws.onclose = function (evt) {
};
}();