Exemplo n.º 1
0
        public async Task SendAsync(string message)
        {
            try
            {
                using (var writer = new DataWriter(socket.OutputStream))
                {
                    await WebSocketRouteHandler.EncodeMessageAsync(writer, 129, message);

                    writer.DetachStream();
                }
            }
            catch (Exception e)
            {
            }
        }
Exemplo n.º 2
0
 internal protected virtual void OnMessage(WebSocketRouteHandler handler, string msg)
 {
 }
Exemplo n.º 3
0
 internal protected virtual void OnConnection(WebSocketRouteHandler handler)
 {
 }