src/FreeDSx/Socket/Socket.php
public static function udp(string $host, array $options = []) : Socket
    {
        return self::create($host, \array_merge($options, [
            'transport' => 'udp',
            'buffer_size' => 65507,
        ]));
    }
public static function udp(string $host, array $options = []) : Socket
    {
        return self::create($host, \array_merge($options, [
            'transport' => 'udp',
            'buffer_size' => 65507,
        ]));
    }
public static function udp ( string $ host , array $ options = [ ] ) : Socket { return self :: create ( $ host , \ array_merge ( $ options , [ 'transport' => 'udp' , 'buffer_size' => 65507 , ] ) ) ; }
Create a UDP based socket.

@param string $host
@param array $options
@return Socket
@throws ConnectionException
Create a UDP based socket .