Install using bunx shadcn@latest add @remix-utils/timers.
The timers utils gives you a way to wait a certain amount of time before doing something or to run some code every certain amount of time.
Using the interval combined with eventStream we could send a value to the client every certain amount of time. And ensure the interval is cancelled if the connection is closed.
Install using
bunx shadcn@latest add @remix-utils/timers.The timers utils gives you a way to wait a certain amount of time before doing something or to run some code every certain amount of time.
Using the
intervalcombined witheventStreamwe could send a value to the client every certain amount of time. And ensure the interval is cancelled if the connection is closed.Author
Sergio XalambrÃ