[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Owner](https://evolu.dev/docs/api-reference/common/local-first/Owner) › RelayUrl

```ts
type RelayUrl = string &
  import("../Brand.ts").Brand<"Url"> &
  import("../Brand.ts").Brand<"WebSocketUrl"> &
  import("../Brand.ts").Brand<"RelayUrl">;
```

Defined in: [packages/common/src/local-first/Owner.ts:583](https://github.com/evoluhq/evolu/blob/1ef91d4e21b74fa0c122e48558188dc42676c429/packages/common/src/local-first/Owner.ts#L583)

[WebSocketUrl](https://evolu.dev/docs/api-reference/common/WebSocket/variables/WebSocketUrl) of a relay, which has no query, such as
`wss://free.evoluhq.com/`.

[createOwnerWebSocketTransport](https://evolu.dev/docs/api-reference/common/local-first/Owner/functions/createOwnerWebSocketTransport) adds the [OwnerId](https://evolu.dev/docs/api-reference/common/local-first/Owner/variables/OwnerId) as the query. A
relay that admits a connection by a credential beyond the OwnerId, such as a
token that a reverse proxy checks, takes it in the path. Like WebSocketUrl,
RelayUrl does not normalize; use [RelayUrlFromString](https://evolu.dev/docs/api-reference/common/local-first/Owner/variables/RelayUrlFromString) to convert other
spellings, such as user input.

### Example

```ts
import { assertErr, assertOk, RelayUrl } from "@evolu/common";

assertOk(
  RelayUrl.fromUnknown("wss://free.evoluhq.com/"),
  "wss://free.evoluhq.com/",
);

assertErr(RelayUrl.fromUnknown("wss://free.evoluhq.com/?token=1"), {
  type: "RelayUrl",
  value: "wss://free.evoluhq.com/?token=1",
});
```