private void OnNewClient(object sender, SocketData socketdata) { var client = new RTMPEndpoint(socketdata.Socket); client.OnConnect += OnConnect; client.OnCreateStream += OnCreateStream; client.OnReleaseStream += OnReleaseStream; client.OnFCPublish += OnFCPublish; client.OnPublish += OnPublish; clients.Add(client); }