Websocket gets closed immediately #609
Replies: 7 comments
-
Posted at 2016-08-19 by @gfwilliams What device are you running this on? It's possible that it's because you're using |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-19 by Injecteer Thanks for your reply Gordon! I'm on esp8266. I called
so, the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-19 by @gfwilliams Ahh, thanks. Just looked into this and yes, for some reason (i think it might have been one of my changes for the server), the websocket client got broken. I just fixed it, so if you upload now it should work. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-19 by Injecteer The connection is established and remains open now, whoohoo! Although some other problems arose... If I call e.g.
If I call
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-19 by @gfwilliams Hmm... What are you using as your WebSocket server? I was pretty sure masking was optional (so you may find it's a configuration option you can turn off in your server). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-20 by Injecteer I'm using vertx.io. It seems to have masking on by default. here a discussion on masking btw, would the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-22 by @gfwilliams You might still be able to tweak vertex.io or report it as a bug - after all, the pretty much standard I don't have time to fix this right now, but I made an issue for it here: espruino/EspruinoDocs#268 There's some info there if you want to get stuck in and fix it :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-08-19 by Injecteer
Using the following code in Espruino Web IDE:
I can see in the server logs, that the WS-connection is established and then closes within some milisecs:
If I enter ws.initializeConnection(); in the left-hand side of IDE, I'm getting the lines:
If I connect to the very same server from my browser or from a z-way server @ raspi, then it works like charm.
Am I missing something or is it a WS-bug?
TIA
Beta Was this translation helpful? Give feedback.
All reactions