Merged controller Dialog Heading

This commit is contained in:
Patrick Hellebrand
2021-09-23 10:22:49 +02:00
2 changed files with 44 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ namespace PolyChat.Models
private void OnConnect()
{
Debug.WriteLine("--- Sending initial packet to server ---");
Client.Emit("initial", IP);
Client.Emit("initial", Controller.getIP());
Debug.WriteLine("--- Connection successfull ---");
Connected = true;
}
@@ -92,5 +92,10 @@ namespace PolyChat.Models
{
return Connected;
}
public string getIP()
{
return IP;
}
}
}