Ejemplo n.º 1
0
        /// <summary>
        /// Sends string message to client
        /// </summary>
        public async Task SendAsync(string message)
        {
            byte[] data = await _writer.Create(WebSocketMessage.FromString(message));

            Send(data);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sends string message to client
 /// </summary>
 public bool Send(string message)
 {
     byte[] data = _writer.Create(WebSocketMessage.FromString(message)).Result;
     return(Send(data));
 }