diff --git a/www/js/fly-ws.js b/www/js/fly-ws.js index 80a019a..4f15f54 100644 --- a/www/js/fly-ws.js +++ b/www/js/fly-ws.js @@ -33,7 +33,7 @@ class FLYSocket { let packetID = data.getInt8(this.pointer++); packets.push({ packetID: packetID, - value: (this["handle_packet" + packetID] || this.handle_packetInvalid)(data) + value: (this["handle_packet" + packetID] || this.handle_packetInvalid).call(this, data) }); }