-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work on WASM #20
Comments
@apuatcfbd I think it is currently only possible via Emscripten; If I'm understanding correctly this is a WASM limitation and not an escpos library one. Can you take a look at WebAssembly/design#1251 (relevant closed WASM design issue with guidance), and let us know? |
At the current scope of this package, it's okay. I wanted to work with WASM to have a specific advantage. This isn't an issue. |
Epos and escpos are two completely separate languages. So that's out of scope here, you'd need to use a library that targets epos language. |
This issue can be closed, as the root cause of the issue is a wasm limitation. |
Even the WASM build failing, There's a PR which solves that.
By using that PR I'm able to build a WASM binay & successfully load into browser,
But the unfortunate thing is WASM doesn't supports direct TCP communication so
net.Dial
doesn't work.(works natively - when running the (documented) code from terminal)
Is there any plan/ way to do that?
The thing I'm trying is to ship a WASM that will handle swift printing from the client site (since the printer in is clients (local) network.
Is it even possible?
The text was updated successfully, but these errors were encountered: