You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i try to use this lib https://github.com/nmrugg/stockfish.js/ as a web worker, but it not working. could you have the same example which using normal web worker like postMessage and onmessage, thanks in advance
The text was updated successfully, but these errors were encountered:
I noticed that the sotckfish library uses by default a communication with "postMessages": API Docs.
Even if it would work it wouldn't make sense to call
stockfish.postMessage("go depth 15 ");
inside demoFN.
Proposal
I thought that we could make available the possibility to import a webworker file as well.
Looks really good to me, with good docs on the webpack thingy I think it's good to go 👍
Also, FWIW there's an ongoing proposal (Stage 1) on JS module blocks it will basically let us inline modules in code and pass them around as they were files. So if that gets through we will have two ways of doing this, with lots of other cool stuff :)
i try to use this lib https://github.com/nmrugg/stockfish.js/ as a web worker, but it not working. could you have the same example which using normal web worker like postMessage and onmessage, thanks in advance
The text was updated successfully, but these errors were encountered: