centrifugal / centrifuge

Real-time messaging library for Go. The simplest way to add feature-rich and scalable WebSocket support to your application. The core of Centrifugo server.

Home Page:https://pkg.go.dev/github.com/centrifugal/centrifuge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send refresh push to trigger token refresh workflow instead of setting a timer on client side

FZambia opened this issue · comments

We can send refresh push to trigger token refresh workflow instead of setting a timer on client side.

This may:

  • reduce the complexity of client connectors
  • avoid setting long-lasting timers which some envs like React Native warn about

The unfortunate thing is that we also need to do this for expiring subscriptions – which complicates things and may require much more messages 🤔

Closing – not sure it's really needed at this point, the benefit is not obvious.