From df14c980c9c2db5ad36b64b23121cc61eb50e9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E7=AB=8B=E6=96=8C?= Date: Sat, 19 Aug 2023 09:27:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:websocket=E5=8D=8F=E8=AE=AE,=E7=BA=BF?= =?UTF-8?q?=E4=B8=8A=E8=B7=A8=E5=9F=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙立斌 --- src/hiprint/hiprint.bundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hiprint/hiprint.bundle.js b/src/hiprint/hiprint.bundle.js index b635c21..893f15c 100644 --- a/src/hiprint/hiprint.bundle.js +++ b/src/hiprint/hiprint.bundle.js @@ -7472,6 +7472,7 @@ var hiprint = function (t) { var t = this; window.WebSocket ? this.socket || (this.socket = window.io(this.host, { + transports: ['websocket'], reconnectionAttempts: 5 }), this.socket.on("connect", function (e) { t.opened = !0, console.log("Websocket opened."), _this.socket.on("successs", function (t) { -- Gitee