chatRooms
This commit is contained in:
parent
86130d2ee5
commit
871cf6b884
42 changed files with 15345 additions and 225 deletions
|
|
@ -35,6 +35,9 @@ namespace Yavsc
|
|||
if (webSocket != null && webSocket.State == WebSocketState.Open)
|
||||
{
|
||||
// TODO: Handle the socket here.
|
||||
// Find receivers: others in the chat room
|
||||
// send them the flow
|
||||
|
||||
byte[] buffer = new byte[1024];
|
||||
WebSocketReceiveResult received = await webSocket.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);
|
||||
while (received.MessageType != WebSocketMessageType.Close)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue