-->
Page 1 of 1

NodeMCU Websocket Module

PostPosted: Fri Jul 14, 2017 3:38 pm
by Thomas Jakober
I made a communication system using websockets. I communicate from nodemcu devices with a Websocket-Server ("ws" from NPM). It works altough i get sporadic a close event with reason -99 on the nodes. I can reconnect after this and it will continue afterwards. On the Websocket server, I found that there are missing pong answers after a ping which is the server sending every 30 second. Because the pong responses are not under control on NodeMCU and automatically generated, i cannot say whether they are sent or not. I see only at the server protocol that there is a timeout.

What is the real condition on the -99 reason code, the manual says only "something bad happened" this is not very helpful. Does somebody knows the websocket module somewhat deeper?

btw, I am using Lua 5.1.4 on SDK 2.1.0(116b762) on a Wemos D1 mini clone and ESP-01 modules

All the best, Thomas

Re: NodeMCU Websocket Module

PostPosted: Fri Jul 14, 2017 3:45 pm
by marcelstoer

Re: NodeMCU Websocket Module

PostPosted: Sun Jul 16, 2017 4:21 am
by Thomas Jakober
Thank you for the hint, I have checked that, my DNS leasing time is 24 hours, but the close -99 occurs between 2 and 10 minutes. So it is probably not the same problem.

Thomas