add flag to socketio, hope it will improve firefox compatibility

This commit is contained in:
Patrick Jentsch committed 2021-09-15 15:26:43 +02:00
1 parent 6c7f3be785
commit 727553412f
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
class AppClient {
constructor(currentUserId) {
if (currentUserId) {
this.socket = io({transports: ['websocket']});
this.socket = io({transports: ['websocket'], upgrade: false});
this.users = {};
this.users.self = this.loadUser(currentUserId);
this.users.self.eventListeners.job.addEventListener((eventType, payload) => this.jobEventHandler(eventType, payload));