-
Notifications
You must be signed in to change notification settings - Fork 5
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
Standard Commmunication Layer Between Socket/JSChannel/Etc #6
Comments
There are 2 places that need to communicate:
Eventually we might want to add a server api, but so far there hasn't been a need.
I haven't thought of it yet.
I plan to have an app for users to create custom apps. The user can put in a name, url, icon and maybe a couple other settings. There is a lot of potential like what you mentioned.
I prefer the promises and pub sub. Callbacks seem to get more complex. Should streams be enabled by something like methods.stream()? The examples I have found have a node client. Do web pages treat streams as a normal response?
I really like that idea. One concern is would it require storing the data in the DOM? I have decided to read Javascript Patterns to better understand Javascript. |
That will be important for Silk to be lightweight - starting and stoping apps when needed instead of always having them running. |
So, heres what we can do.
This is one of the things I'm going to do next because I think its interesting.
This will be important at somepoint, however I also think it ties in strongly with security and ensuring apps don't conflict when it comes to port numbers. This may also be a new issue as well
I'm Opening up a new Issue for this |
As it is, Communication between Frames is done through JsChannel, Server and Client Websockets and I'm guessing you'll probably want to implement RTC at some point as well (not because its necessary but because its fun). However, the communication between everything is different. Theres a few things that I've thought about
The Question
Why is this important
People (including me) generally don't want to learn 5+ different ways of doing very similar tasks
Necessities
Options (Can mix and match as we please)
Our System Now
Thoughts
jQuery is the standard of Clientside Web Development. Whether its the sexy use of css selectors, the animation api or just making ajax requests it is the bees knees compared to native. I question if we can implement something similar such as
$("Application.editor[accepts=text/html]")
.openFile("path/to/the.file")
.done(function(){
$(this).focus()
}).error(function(){
$("Application.packagemanager[serves=apps]")
.focus()
.search("Applications.editor[accepts=text/html]")
});
It doesn't have to be that specific syntax but I believe there is potential. I believe you were starting this with silk but am not 100% sure.
The text was updated successfully, but these errors were encountered: