Esempio n. 1
0
 public void Start()
 {
     console = new ConsolePlus(messageStream);
     console.Print("Connected.");
     console.Print("Simple guide:");
     console.Print("To start chat you must first register on server.");
     console.Print("Type /register NAME with your chosen name.");
     console.Print("After registration you can join to any chat by typing /join CHATNAME.");
     console.Print("When in chat, type anything not starting with '/' to send message.");
     console.Print("Type /exit to quit.");
     console.Print("Enjoy!");
     messageStream.StartListeningAsync();
     StartListeningAsync();
     console.StartReading();
 }
 public override void UpdateClient(ConsolePlus console)
 {
     console.RoomKey = RoomKey;
     console.Print($"Joined to {RoomKey}.");
 }
Esempio n. 3
0
 public override void UpdateClient(ConsolePlus console)
 {
     console.Print("Registered!");
 }
Esempio n. 4
0
 public override void UpdateClient(ConsolePlus console)
 {
     console.Print($"Server error: {Error}");
 }
Esempio n. 5
0
 public override void UpdateClient(ConsolePlus console)
 {
     console.Print($"Unsupported message {nameof(RegisterMessage)}.");
 }
 public override void UpdateClient(ConsolePlus console)
 {
     console.Print($"{ClientName} exited.");
 }
Esempio n. 7
0
 public override void UpdateClient(ConsolePlus console)
 {
     console.Print($"{SenderName}: {Value}");
 }