Hi Gordon,
Yes, please implement 'normal' sockets. Maybe a subset of this implementation:
http://nodejs.org/api/net.html#net_net
WebSockets can then be implemented on top as a module only loaded when needed. Just like any other protocols on top of sockets.
BTW. I think you already implemented i kind of sockets. The existing HTTP Class must be based on it.
@Sacha started
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.
Hi Gordon,
Yes, please implement 'normal' sockets. Maybe a subset of this implementation:
http://nodejs.org/api/net.html#net_net
WebSockets can then be implemented on top as a module only loaded when needed. Just like any other protocols on top of sockets.
BTW. I think you already implemented i kind of sockets. The existing HTTP Class must be based on it.