Username change now dirty reactive in ui

This commit is contained in:
Patrick Hellebrand
2021-09-23 14:02:42 +02:00
parent e313f7bde7
commit 3cce36ee21
3 changed files with 23 additions and 17 deletions

View File

@@ -37,9 +37,14 @@ namespace PolyChat
{
UIController = uiController;
OwnIP = getIP();
loadChats();
//loadChats();
//SaveChats("10", "{das ist ein test}");
Serve();
// test
UIController.OnIncomingConnection("1.1.1.1");
UIController.OnIncomingConnection("1.2.3.4");
UIController.OnIncomingConnection("1.2.4.8");
}
public void Connect(string ip)
@@ -70,7 +75,7 @@ namespace PolyChat
{
Debug.WriteLine("--- Client connected! ---");
// setup event listeners
socket.On("initial", async (JToken[] data) =>
socket.On("initial", (JToken[] data) =>
{
Debug.WriteLine("--- initial packet received ---");
string ForeignIp = data[0].ToString();