nodejs-mobile / nodejs-mobile-react-native

Node.js for Mobile Apps React Native plugin
https://nodejs-mobile.github.io
MIT License
174 stars 42 forks source link

Is it possible to write a full-fledged websocket server on this library? #13

Closed ZeaZ-pixel closed 2 years ago

ZeaZ-pixel commented 2 years ago

Hello everyone I would like to write a websocket server on this library. So that I can do cross-platform correspondence over a local network. What are the limitations of this library? And is it possible to implement this?

staltz commented 2 years ago

Yes, totally possible. It is a real node.js, except for some minor details (runs as a thread, not a process, and a few APIs like profiling and Intl aren't supported).

ZeaZ-pixel commented 2 years ago

So some APIs are not supported after all? Socket.io is it included in this list?

staltz commented 2 years ago

Check the node.js mobile website to see the unsupported APIs.

ZeaZ-pixel commented 2 years ago

And is there a way to use this library for rnw (react native windows),

staltz commented 2 years ago

Probably yeah

ZeaZ-pixel commented 2 years ago

Ok, Thanks!