Azure / azure-webpubsub

Azure Web PubSub Service helps you to manage WebSocket connections and do publish and subscribe in an easy way
https://azure.github.io/azure-webpubsub/
MIT License
132 stars 84 forks source link

Nodejs no reconnect or event after energy mode #700

Open user321321 opened 6 months ago

user321321 commented 6 months ago

Describe the bug

There is no reconnect or connection failure when switching to energy-saving mode.

To Reproduce

let client = new WebPubSubClient(url); client.on("connected", (e) => { console.log(Connection ${e.connectionId} is connected.); }); client.on("disconnected", (e) => { console.log(Connection disconnected: ${e.message}); }); client.on("stopped", async () => { console.log(Client has stopped); });

  1. Connect
  2. Go 60 s in energy consumption mode
  3. Start computer
  4. It looks like there is a connection, but no more messages are being received. No reconnect and no event is created. All the time no new information as "Connection **** is connected." But this is not true.

Further technical details