aio-libs / aio-libs/aiohttp

Can't detect disconnection on wifi websocket client

Ouverte
#2,368 6 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
16.5k
Forks
2.4k
Merge moyen
17 h 22 min
PR mergées (30 j)
212

Description

## 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.