From a135180ecfcefc477f67d786cd88d2df2c000f50 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 21 Jan 2022 19:41:10 +0900 Subject: [PATCH] [Modify] Polish it --- Example2/Chat.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Example2/Chat.cs b/Example2/Chat.cs index eb6370f5..940830b6 100644 --- a/Example2/Chat.cs +++ b/Example2/Chat.cs @@ -57,6 +57,11 @@ namespace Example2 protected override void OnOpen () { _name = getName (); + + var fmt = "{0} has logged in!"; + var msg = String.Format (fmt, _name); + + Sessions.Broadcast (msg); } } }