add flag to socketio, hope it will improve firefox compatibility

This commit is contained in:
Patrick Jentsch 2021-09-15 15:26:43 +02:00
parent 6c7f3be785
commit 727553412f

View File

@ -1,7 +1,7 @@
class AppClient { class AppClient {
constructor(currentUserId) { constructor(currentUserId) {
if (currentUserId) { if (currentUserId) {
this.socket = io({transports: ['websocket']}); this.socket = io({transports: ['websocket'], upgrade: false});
this.users = {}; this.users = {};
this.users.self = this.loadUser(currentUserId); this.users.self = this.loadUser(currentUserId);
this.users.self.eventListeners.job.addEventListener((eventType, payload) => this.jobEventHandler(eventType, payload)); this.users.self.eventListeners.job.addEventListener((eventType, payload) => this.jobEventHandler(eventType, payload));