public async void StartListeningAsync() { listener.Start(); Console.WriteLine("Server started."); while (!cancellation.IsCancellationRequested) { ManageClientAsync(await listener.AcceptTcpClientAsync()); } streamManager.Stop(); }
public void StopStream(string streamType) { _streamManager.Stop(); Clients.All.log("Message from Server: Stream stopped"); }