Browse Source

add polling

gemercheung 3 năm trước cách đây
mục cha
commit
555ee5dab2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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, {