浏览代码

add polling

gemercheung 3 年之前
父节点
当前提交
555ee5dab2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/io.js

+ 1 - 1
src/core/io.js

@@ -22,7 +22,7 @@ const io = new Server(httpServer, {
   pingInterval: 10000,
   pingTimeout: 5000,
   parser: customParser,
-  transports: ["websocket"]
+  transports: ["websocket", "polling"],
 });
 
 instrument(io, {