Ahh. Unfortunately I don't think the Original Espruino Board ever had enough free flash memory to be able to include the crypto module by default (it's not JS, it's a built-in C module)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh. Unfortunately I don't think the Original Espruino Board ever had enough free flash memory to be able to include the crypto module by default (it's not JS, it's a built-in C module)
@Wilberforce made a JS version with just the function that's needed for websockets though: http://forum.espruino.com/conversations/276175/?offset=25#12817146
If you add the following at the top of your code:
Then that should fix it for you.