Closed mengyanshou closed 3 years ago
Are you running the server with your app? ctrl-c
from the command line should work.
Are you running it with your IDE?
In fact,I don't use it on the command line,i use it on flutter app,like speedshare,i think shelf can also support client,and it worked nice,but i can't close it by dart.
i think shelf should support close invoked like HttpServer or the other server framework.
See https://github.com/dart-lang/samples/blob/master/server/simple/bin/server.dart#L26
You get a server instance. You can call close
on it.
i use it for my flutter app,i want close the server and not close my app,any help thanks~