felangel / felangel/web_socket_client
feat: a function to generate URI before every connecting
Ouverte
enhancement
- Langage dominant
- Dart
- Étoiles
- 177
- Forks
- 44
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.