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

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