In SocketAdapter.js, I suggest using fast-png, a pure javascript library, to make shim/decompressPng.js usable in web workers https://github.com/image-js/fast-png