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
question about node.js compatibility #142
Comments
@brendanashworth Hi, thank you for information. We think that we can't cover the whole set of node.js APIs, because of limited memory in IoT devices. So we are trying to define several subsets of node.js API. One for mandatory, others are optionally loaded on demand as *.npm like module. As of now, our 1st candidate of mandatory API for IoT.js are as follow. (Listed in module resolution) 1st candidate of IoT.js mandatory module
|
Sounds like a good set of modules - no native addons? As a side comment, maybe this list will interest y'all. 😄 |
@brendanashworth Yes, I think we'll eventually support native addon. |
It would be nice to see UDP/Datagram sockets, as they are superb to use in HTTP and WebSockets later. But I have no clue how to implement them myself... |
UDP sockets are also important in implemeting CoAP and similar protocols. |
FYI, a significant goal of the node API working group is to standardize a lower-level API that the existing JS files in lib/ would sit on top of. (Rather than the implementation-specific process.bindings(...) interface) I think it would be worthwhile to coordinate and communicate your needs to the node API working group to work towards full compatibility with the lower-level API and only differing on the scope of what the JS files on top of it do. The lower-level API is still very open for discussion, so the influence of vendors with platform limitation concerns would be very valuable to shaping a highly portable and performant API. |
Updated candidate for IoT.js API. Please check the milestone for progress. Thanks! |
Is there any plan to support websockets on iot.js? |
@aquaherd iot.js already supports the |
Thanks, I will try that. |
Just a curious question, why the official |
Hi there!
I took a look at the project and it looks pretty cool. I saw that you were looking for some sort of compatibility with node.js - is this right? If so, y'all might want to take a look at nodejs/api. It is an effort by the nodejs foundation to move towards a standardized API that allows platforms like this to have a real standard.
Maybe you're interested 😄
The text was updated successfully, but these errors were encountered: