mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(MultiplexTransport) Implement OnServerConnectedWithAddress
This commit is contained in:
parent
76d83aa998
commit
ac3007fd1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user