-
Notifications
You must be signed in to change notification settings - Fork 16
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
example not works: WebUI not exported #7
Comments
Solution:
|
Since the current doc is tracking the next comming release there are breaking changes on the exports. For production use keep using the stable latest tag on |
The new stable version will be available soon after we voted to remove the |
Not sure what it means, but I have a relevant question, Is it recommended to implement backend with bind/call between frontend in terms of performance or rather perhaps better spawn my own http server in same process? |
Sorry, I meant that the current repo has an unfinished implementation. You can use the latest stable version here. Or clone the current branch, and apply the patch mentioned by @JOTSR. About the HTTP Server, usually, webui will take care of it for you. You will receive events (clicks, calls) quickly. Many people have already used webui 2.0.3 in a production environment, and it's working fine, with no performance issues. |
Another issue, I'm not sure if it's supposed to support async handlers of events, and in that case I should open another issue with more detailed description, but what happens that it works with one or two invocations, and then throws a fatal error:
I don't know if it can be easily fixed to support async handlers and in meantime I will have to stick with following approach, where I have to manually register callback on frontend, then call backend function which will run callback passing result.
|
Do you mean this is causes issues: webui_fn('first_function').then((response) => {
window.cb(response);
}); |
The text was updated successfully, but these errors were encountered: