Reputation: 117
I am developing an Angular 5 Application, which talks to the Server (IoT Device) over a Websocket connection, where JSON-messages are sent and also received.
The application works fine on Firefox, Chrome and Opera - but with Microsoft Edge, the connection closes after an idle time of 30sec with the following error message:
SCRIPT12030: WebSocket Error: Network Error 12030, The connection with the server was terminated abnormally
Additional information:
How can i keep the connection open?
Upvotes: 1
Views: 2024
Reputation: 117
Microsoft Edge sends "Pong"-messages - even if their was no "Ping"-Message before.
The IoT-Device could not parse the "Pong"-message and closed the websocket connection.
Other browser only respond with "Pong"-messages, if their was a "Ping"-message before. As solution we implemented Ping/Pong-in our IoT-Device.
Upvotes: 1