Thanks! It seems a shame to have a duplicate of what's basically the same module though.
I wonder whether it'd make more sense to just allow the existing WebSocket library to be used easily with a connection that was already established? After all, that's what createServer ends up doing, and actually you don't really want to have to pass all the TLS connection parameters through - as mentioned in the HTTPS thread, it turns out you might not want to specify some of those parameters at all.
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.
Thanks! It seems a shame to have a duplicate of what's basically the same module though.
I wonder whether it'd make more sense to just allow the existing WebSocket library to be used easily with a connection that was already established? After all, that's what
createServer
ends up doing, and actually you don't really want to have to pass all the TLS connection parameters through - as mentioned in the HTTPS thread, it turns out you might not want to specify some of those parameters at all.