소스 검색

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, {