mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-02-26 07:25:15 +00:00
* Set max buffer size to maximum allowed I'm evaluating this library for an application that sends ~60kb size UDP messages. Without this setting the messages are cut off at the default message size. This is probably something you'd want to set with `const socket = dgram.createSocket('udp4', { maxBufferSize: 'UINT16_MAX' })`. I've modified the library to automatically choose the largest allowed size `GCDAsyncUdpSocket` allows (which is 64kb). * Set max ipv6 buffer size to uint16 maximum