Example #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);
        }
Example #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));
 }