1234567891011121314151617181920212223 |
- using System;
- using System.Net.WebSockets;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace gameapi.Commands
- {
- public class LeaveWebsocketCommand : IWebsocketCommand
- {
- private string[] keys;
- public LeaveWebsocketCommand(string[] keys)
- {
- this.keys = keys;
- }
- public async Task Run(WebSocket webSocket)
- {
- // await webSocket.SendAsync(new ArraySegment<byte>(Encoding.UTF8.GetBytes(commandString), 0, commandString.Length), WebSocketMessageType.Text, true, CancellationToken.None);
- }
- }
- }
|