onServerConnected method
Reports that the server is running. This notification is issued once after the server has started running but before any requests are processed to let the client know that it started correctly.
It is not possible to subscribe to or unsubscribe from this notification.
Implementation
@override
void onServerConnected(ServerConnectedParams params) {
var version = Version.parse(params.version);
if (checkServerProtocolVersion(version)) {
_connected.complete(true);
} else {
onProtocolNotSupported(version);
_connected.complete(false);
server.stop();
}
}