diff --git a/kasmweb/core/rfb.js b/kasmweb/core/rfb.js index 91c11b0..2c06cd4 100644 --- a/kasmweb/core/rfb.js +++ b/kasmweb/core/rfb.js @@ -203,7 +203,9 @@ export default class RFB extends EventTargetMixin { this._mouse.onmousemove = this._handleMouseMove.bind(this); this._sock = new Websock(); - this._sock.on('message', this._handle_message.bind(this)); + this._sock.on('message', () => { + this._handle_message(); + }); this._sock.on('open', () => { if ((this._rfb_connection_state === 'connecting') && (this._rfb_init_state === '')) {