diff --git a/Assets/Mirror/Transports/Multiplex/MultiplexTransport.cs b/Assets/Mirror/Transports/Multiplex/MultiplexTransport.cs index d567115f8..b4c979d44 100644 --- a/Assets/Mirror/Transports/Multiplex/MultiplexTransport.cs +++ b/Assets/Mirror/Transports/Multiplex/MultiplexTransport.cs @@ -268,6 +268,13 @@ void AddServerCallbacks() OnServerConnected.Invoke(multiplexedId); }); + transport.OnServerConnectedWithAddress = (originalConnectionId, address) => + { + // invoke Multiplex event with multiplexed connectionId + int multiplexedId = AddToLookup(originalConnectionId, transportIndex); + OnServerConnectedWithAddress.Invoke(multiplexedId, address); + }; + transport.OnServerDataReceived = (originalConnectionId, data, channel) => { // invoke Multiplex event with multiplexed connectionId