felangel / felangel/web_socket_client

feat: a function to generate URI before every connecting

Đang mở
#31 2 bình luận 7 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Dart
Star
177
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description**

I want to add the user authentication token as query param to URI, but the token has short lifetime, while trying reconnect after token expires, there is no way to update the token, it will stuck looping.

```dart
WebSocket(
uri: () => "wss://localhost/?_token=xxxxx", // we can use the callback to retrieve valid token before connects.
);
```

**Requirements**

- [ ] A function to generate URI before every connect happens.

**Additional Context**

No.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.