Yep, I had a modified copy of old handshake() code with hard-coded Sec-WebSocket-Key instead of new this.key.source. The result was, that no open event was emitted. After I poured the new crypto-aware code in, the problem disappeared.
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.
Yep, I had a modified copy of old
handshake()
code with hard-codedSec-WebSocket-Key
instead of newthis.key.source
. The result was, that noopen
event was emitted. After I poured the newcrypto
-aware code in, the problem disappeared.I created a pull-request. Please see https://github.com/espruino/EspruinoDocs/pull/289. It shouldn't have any impact on space requirement for the library.