I understand that Espruino is not a ful-fledge node.js env. And I understand that ws is part of the package, and I can use it to connect to a ws server and do stuff on diff. events.
My question is, is there a way to use firebase lib directly ? This will save me some work-arounds or writing my own ws wrapper on a saperate server to host websockets to which i'll connect from the esp8266.
Any ideas are welcome.
Thanks in advance.
The firebase js file is 360kB, and most Espruino devices have in the region of 50kB available RAM, so there's no way you can use the lib directly. It sounds like you might be trying to use just a bare ESP8266? In that case you'll have even less memory available.
Potentially you could try to use tree-shaking tools to strip out the bits you're not using, but I think this is more effort that doing it directly, and you're very unlikely to get it small enough that you could run other code as well.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem