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
Do partial.js support flush #30
Comments
You can use a "partial content": Example: Partial content is asynchronous. You can load data from DB and wait for the result. Partial content can be global or specific. All views are synchronous. Or use async feature: Example: If you don't understand I'll write an example. |
I failed to run async examples.. |
Asynchronous work is longer as default timeout:
Example: What is async? Async is a class for asynchronous work. Async class helps you to do several things at the same time. |
I think flush is partial content but sending it without waiting after all part finishing the execution.. or can you give example partial content using 'get started examples'?. in get started examples, it's only separate the template..not the execution.. |
I'm writing a new documentation. There will a complete explanation. |
thank you.. |
the best framework examples I've ever seen is tornadoweb examples.. |
Thanks - I'll look. |
sorry for OOT but do you have examples of login with google, twitter, facebook, etc.. |
Hi @goldalworming, Thanks. |
I hope it won't take a long time.. |
I'll write an example and update partial.js version today. |
thanks a lot... |
Hi @goldalworming, I'm preparing an example of OAuth, please write me - Which module of OAuth do you use? |
thanks, I've updated partial.js.. |
Super, I'll write an example with the passport.js today. |
I looked on the passport.js and everyauth. Modules are written for Express.js and this is a problem. I must write own auth for Google, Facebook, Twitter and OpenID. Other modules haven't good documentation. Really sorry, I have no more time. |
ok,no problem..thanks.. and do you have any explanation about #.js if self.validate will call onValidation..so when onAuthorization called.. |
Yes ... onValidation: onValidation = is for object / values validation onAuthorization: Is called when a route has contain "logged" / "unlogged" flag. Thanks. |
can we make own flag like 'admin' / 'notadmin' or anything else?? |
You can use "role route flags". Example: |
that's very neat...thank you.. |
Hi, I want to back on flushing issue.. after adding timeout in async example..and try some examples.. flushing is like server-sent-event / websocket send data to client with template..but using sse / websocket will give me browser support problem..do you have any alternative?? |
Hi @goldalworming, |
I don't understand pooling between SSE/Websocket and XHR..does it mean partial.js not support XHR and Websocket in one app?? |
partial.js supports SSE/WebSocket/XHR in one app. You must write a shared communication between SSE/WebSocket/XHR. TIP: |
I thought redis would be enough as database to make communication between them..Does it wrong? does socket.io library doesn't work with partial? (#20) |
Socket.io works perfectly with partial.js |
@Igruz : how do you write the socket.io route and the function?? |
I created a module named "websocket": var socketio = require('socket.io'); framework.on("load", function() { Then, in config file you have to set "allow-websocket" as false. Now, you can use framework.ws in any route, module... |
ok I'll try it.. |
Hi, for google auth..is this library fit with partial.js?? |
Hi @goldalworming, Potentially can use node-oauth, but it is not guaranteed. You can rewrite (in its examples): res (response) -> controller.res; If you use controller.res somewhere then before using you must call controller.close() for preventing of timeout. Please give me a feedback about using node-oauth according to article. PS: I wrote Login with Facebook (https://github.com/petersirka/partial.js-modules/tree/master/facebook) Thanks! |
hello, sorry for trigger old issues |
Do partial.js supprot flush to send and how to combine with the layout?
the case study is
Do you support it?
The text was updated successfully, but these errors were encountered: