felangel / felangel/web_socket_client

feat: a function to generate URI before every connecting

Abierto
#31 2 comentarios 7 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Dart
Estrellas
177
Forks
44
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.