This commit is contained in:
Paul Schneider 2017-08-31 17:36:45 +02:00
commit f14b8b0598
3 changed files with 57 additions and 10 deletions

View file

@ -1,22 +1,14 @@
using System;
using System.Collections.Concurrent;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.Extensions.Logging;
namespace Yavsc.ApiControllers
{
public class PodcastController : Controller
{
public ArraySegment<Byte> CurrentOutput ;
public bool IsEnd;
ConcurrentBag<WebSocket> Listeners = new ConcurrentBag<WebSocket>();
public async Task Connect()
{
var socket = await this.HttpContext.WebSockets.AcceptWebSocketAsync();
}
}
}