diff --git a/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs b/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs index c4609f4bf..1d315ce22 100644 --- a/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs +++ b/Assets/Mirror/Tests/Editor/Transports/MultiplexTransportTest.cs @@ -238,16 +238,16 @@ public void TestServerConnected() ArraySegment segment = new ArraySegment(data); // on connect, send a message back - void SendMessage(int connectionId) + void SendMessage(int connectionId, string remoteClientAddress) { transport.ServerSend(connectionId, segment, 5); } // set event and Start to give event to inner - transport.OnServerConnected = SendMessage; + transport.OnServerConnectedWithAddress = SendMessage; transport.ServerStart(); - transport1.OnServerConnected.Invoke(1); + transport1.OnServerConnectedWithAddress.Invoke(1, ""); transport1.Received().ServerSend(1, segment, 5); } @@ -260,14 +260,14 @@ public void TestServerSend() transport.ServerStart(); transport.ClientConnect("some.server.com"); - transport.OnServerConnected = _ => {}; + transport.OnServerConnectedWithAddress = (_,_) => {}; transport.OnServerDisconnected = _ => {}; // connect two connectionIds. // one of them very large to prevent // https://github.com/vis2k/Mirror/issues/3280 - transport1.OnServerConnected(10); - transport2.OnServerConnected(int.MaxValue); + transport1.OnServerConnectedWithAddress(10, ""); + transport2.OnServerConnectedWithAddress(int.MaxValue, ""); byte[] data = { 1, 2, 3 }; ArraySegment segment = new ArraySegment(data);