aio-libs / aio-libs/aiohttp

Can't detect disconnection on wifi websocket client

Aperta
#2,368 6 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
16.5k
Fork
2.4k
Merge medio
17h 22m
PR unite (30g)
212

Descrizione

## Long story short
I use several esp8266 (a wifi IOT) as websocket client with aiohttp 2.3.1 websocket server .
Works perfectly but i can't detect disconnection.

## Expected behaviour
I want to detect disconnection when an esp8266 disappear.

## Actual behaviour
I detect connections and play with all clients ESP8266. The method detecst all disconnections at heartbeat delay but do nothing.
I there any solution?

## Steps to reproduce
A background loop to send a ping to all client esp8266.
WebSocketResponse instance with heartbeat param set.

## Your environment
Debian machine + Python 3.5 + aiohttp v 2.3.1

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.