dart-lang / dart-lang/http

How to detect channel disconnected (can not listen cause message will duplicated)

Open
#1,620 37 comments 29 reactions 0 assignees View on GitHub
package:web_socket_channel
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Hi, just wonder if there an alternative way to detection disconnection of channel, I wanna something like:

```
if (channel.disConnect) {....}
```
is there anyway to do this? (I should do it when user refresh...... do not need listen to stream....)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.