This repository was archived by the owner on May 10, 2022. It is now read-only.

Description
@override
void initState() {
super.initState();
shelf_io.serve(handler, '10.0.2.15',3534).then((server) {
_httpServer = server;
setState(() {});
}).catchError((err){
print(err);
setState(() {});
});
}
When I create a connection in initstate and then execute the close method in dispose, the service that the client has connected will not be disconnected
@override
void dispose() {
_httpServer?.close(force:true);
super.dispose();
}