-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Connect external UCI engine #10867
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
Connect external UCI engine #10867
Conversation
* master: rel attributes for markdown-style links
app/views/oAuth/authorize.scala
Outdated
| moreJs = embedJsUnsafe( | ||
| // ensure maximum browser compatibility | ||
| """setTimeout(function(){var el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.setAttribute('class','button')}, 2000);""" | ||
| """setTimeout(() => {const el=document.getElementById('oauth-authorize');el.removeAttribute('disabled');el.classList.remove('button')}, 2000);""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentionally going for much broader browser compatibility here, because apps might open the OAuth prompt in ancient web views.
* master: let mods download games of closed accounts remove paypal checkout live setting
|
Is it ok to merge and deploy this before we have providers? |
|
I would say yes. It's clearly labeled as alpha, so I hope no one will be mad if we change the protocol or disable it again. |
|
This is super cool! Uploading an engine from a .wasm file might be a nice future improvement since it wouldn't need the user to run a WebSocket server locally and would also improve portability. |
Revives #8400, closes #7909.
Main motivation here is speed, but also that it's unlikely that future Stockfish versions will come with smaller networks that will be (nicely) usable in the browser.
Companion tools: https://github.com/lichess-org/external-engine
Idea:
User downloads and installs remote-uci service (runs WebSocket server in backgound, I guess with a tray icon on Windows/Mac). Currently just prints:
On first install, or on demand,

https://lichess.org/analysis/remote?url=ws://127.0.0.1:9670/<secret>&<engine-info>is opened in the browser.Authorizing creates
ceval.remotewithRemoteWorkerOptsin local storage. Local storage, because likely only the particular device can reach the local remote-uci server. Redirects to the analysis page.On the analysis page:
Settings based on
<engine-info>:secretProtocolshould not rely on Stockfish specifics