morrissinger / ESP8266-Websocket

A websocket library for the ESP-8266.
305 stars 118 forks source link

Esp8266 Connection opened to ws://192.168.4.1 & CONNECTION_LOST, websocket connection lost #24

Open ayushimundra30 opened 7 years ago

ayushimundra30 commented 7 years ago

I have written a websocket code on Nodemcu 1.0 /0.9 veraion using aurdino ide and made an app ( websocket client )which connects to the websocket server on the nodemcu .It used to work, but now I am experiencing some problem. Logs : Connection opened to ws://192.168.4.1 ECHO: successful connection and then it auto disconnects after less than a sec Error : saying this Close : CONNECTION_LOST, websocket connection lost then the same thing repeats when I try to connect again

can u suggest me what the issue behind this even i tried on serial monitor / htm;l webpage same issue i am facing please suggest me how to debug this issue ?? whats wrong why its showing connection lost after a sec only when connected to client . Below u can see the attachment of code this code i flashed on Nodemcu esp8266 12-E dev board and facing this issue . I hope u got my point . If any query ask me but try to give me suggestion how to resolve it ?? As per I know issue in code only but I am not able to debug suggest me Please !!!!!!!!!!!!!!

Esp8266websocket.txt

UnPocoCocoLoco commented 7 years ago

I have exactly the same problem...

ayushimundra30 commented 7 years ago

u are tyrying to connect it to android app or some else ?? How to debug or resolve this suggest some solution