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}."); }
public override void UpdateClient(ConsolePlus console) { console.Print("Registered!"); }
public override void UpdateClient(ConsolePlus console) { console.Print($"Server error: {Error}"); }
public override void UpdateClient(ConsolePlus console) { console.Print($"Unsupported message {nameof(RegisterMessage)}."); }
public override void UpdateClient(ConsolePlus console) { console.Print($"{ClientName} exited."); }
public override void UpdateClient(ConsolePlus console) { console.Print($"{SenderName}: {Value}"); }