[TRY]
This commit is contained in:
parent
ef83ada9c5
commit
f14b8b0598
3 changed files with 57 additions and 10 deletions
|
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue