Websockets
-
it would be better to avoid socket.io and use ws compiled for MIPS, i just have no idea how to do that. Just saying if we had working ws and have an option to avoid socket.io we would save 3.2MB
-
@Igor-Neuhold Can you isolate the source code for
bufferutil
andutf-8-validate
?
-
you mean in ws?
I'm not sure that's the way to go. Can't you just compile ws for MIPS or something?
as for storage I guess 4mb ain't so bad with some external data device
-
@Igor-Neuhold
ws
is compiled bynpm
, but in order to cross-compile them for the Omega we will need to get the source code and use the cross-compile toolchain to compile them (because we don't havenpm-gyp
on the Omega).
-
maybe this can help: http://fibasile.github.io/new-node-modules.html
-
@Igor-Neuhold Thanks for sharing! I will test them out
-
I'm looking forward to seeing
ws
working with Node.js on Onion
-
@Sergiy-Kyrylkov Do the packages listed here work? http://fibasile.github.io/new-node-modules.html
-
@Boken-Lin I don't know. We cancelled our Onion orders until Node.js is confirmed to work with the libraries we need (Mongoose, ws). Also Node.js 0.10 has a regression which breaks our code on Intel Edison, so we cannot use anything less then 0.12
-
Hi @Sergiy-Kyrylkov, these are all functions we are in the process of working on. As soon as we have them ready, we will let you know. Also, are you thinking about running MongoDB on the Omega itself? Or are you going to be using Mongoose to access MongoDB on a server?
-
@Boken-Lin No, we need just the Mongoose and ws. These two libraries have native components.
-
@Sergiy-Kyrylkov I see. Just running mongoose shouldn't be an issue. We just need to get them to cross-compile properly on the Omega. Please stay tuned for that!