Ejemplo n.º 1
0
        private void SendButton_Click(object sender, RoutedEventArgs e)
        {
            var message = new Message()
            {
                threadId = ThreadId,
                message  = MessageTextBox.Text,
                orderId  = OrderId,
                userId   = UserId
            };

            socketService.Emit("new_message", JsonConvert.SerializeObject(message));
            MessageTextBox.Text = string.Empty;
        }