public ushort PacketSize ;


Defines maximum packet size (in bytes) (including payload and all header). Packet can contain multiple messages inside. Default value = 1500.

Note that this default value is suitable for local testing only. Usually you should change this value; a recommended setting for PC or mobile is 1470. For games consoles this value should probably be less than ~1100. Wrong size definition can cause packet dropping.

ConnectionConfig myConfig = new ConnectionConfig();
myConfig.PacketSize = 1440;