http_server icon indicating copy to clipboard operation
http_server copied to clipboard

How to dispose or close the server? [help/ possible bug]

Open Gh05ts opened this issue 4 years ago • 2 comments

Hi after I change route on my app can we dispose or close the server? Or is this automatically handled?

Gh05ts avatar Aug 01 '20 18:08 Gh05ts

@Gh05ts did you find any solution?

luissouza avatar Sep 12 '20 18:09 luissouza

@luissouza No in my case the reason I was using this was to serve a local file through a local server because of an issue I was facing in some other package, in the end I just didn't use that package, and got the local file without server. Usually you initialize something and close it in dispose but I can't find a way to do that with this, but that is actually a flutter issue more, not related to this package.

Gh05ts avatar Sep 14 '20 00:09 Gh05ts