Skip to content
  • Àlex Fiestas's avatar
    Consume all pendingDatagrams from udpServer · 5a9808e0
    Àlex Fiestas authored and Albert Vaca Cintora's avatar Albert Vaca Cintora committed
    This fixes a bug where receiving broadcast messages would stop working
    in case 2 messages have been received at the same time.
    
    The problem is that readReady will only emit once per batch of datagrams
    received, in case we receive 2 datagrams but only consume 1, readReady
    will never be emitted again.
    5a9808e0