Skip to content
Prev Previous commit
Next Next commit
Use polling with the NS client
  • Loading branch information
sulkaharo committed Dec 30, 2022
commit b8d381ee4df950f1bc17c6b9965a3373f70ef748
2 changes: 1 addition & 1 deletion lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ client.load = function load (serverSettings, callback) {
// Client-side code to connect to server and handle incoming data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* global io */
client.socket = socket = io.connect();
client.socket = socket = io({ transports: ["polling"] });

socket.on('dataUpdate', dataUpdate);

Expand Down