You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • So you were using the WebSocket module, but you'd overridden WebSocket.prototype.handshake with an older version in a section of code that you didn't post up, and that's what broke it?

    Was there a problem with using the module as-is, assuming you don't want the custom headers?

    Memory is scarce on ESP8266 as is, and I've already had complaints about Websockets and MQTT libraries taking up too much space.

    Basically I'm stuck in the middle. I get people complaining whatever change I make - but there's no point me annoying other users by making a change that's not documented, that a fraction of a percent of Espruino users will ever discover.

    If you want to give me a pull request with it in, and with the relevant documentation in the ws.md file so people actually know it exists and how to use it, that'd be cool - but I don't have time to do it I'm afraid.

About

Avatar for Gordon @Gordon started