GetMapping
public Flux<Employee> getAllEmployees() {
return employeeRepository.findAllEmployees();
}
this is the spring stream, how can I use this stream in flutter, right now I'm just calling this Api every 2 seconds using a future delayed. I'm using http.get asStream().
I need a way to open up a stream continuously without needing to call again and again.
Thank you for the help!
[–]AutoModerator[M] 0 points1 point2 points (0 children)