I'm looking through your updates, and trying to follow:
old line 128:
if (opcode == 0xA) return this.emit('pong');
new:
if (opcode == 0xA) { this.emit('pong'); return }
Aren't these equivalent?
and also here line 182sh:
this.socket.write(socketHeader.join("\r\n"));
and new:
for (var index = 0; index < socketHeader.length; index++) { this.socket.write(socketHeader[index] + "\r\n"); }
@Wilberforce 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.
I'm looking through your updates, and trying to follow:
old line 128:
new:
Aren't these equivalent?
and also here line 182sh:
and new: