Packages

Runs a moq-relay binary as a supervised OS process that is ready when started

Current section

Files

Jump to
ex_moq_relay README.md
Raw

README.md

# ExMoQ.Relay

[![Hex.pm](https://img.shields.io/hexpm/v/ex_moq_relay.svg)](https://hex.pm/packages/ex_moq_relay)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/ex_moq_relay)

Runs a [moq-relay](https://doc.moq.dev/bin/relay) binary as a supervised OS process from Elixir.

## Installation

```elixir
def deps do
  [
    {:ex_moq_relay, "~> 0.1.0"}
  ]
end
```

Tested with moq-relay 0.15-0.17, available through `cargo install moq-relay`
or [moq-dev releases](https://github.com/moq-dev/moq/releases).

## Usage

```elixir
{:ok, relay} = ExMoQ.Relay.start_link(quic: nil, tcp: 4444, web: 8080)
%ExMoQ.Relay.Info{tcp: tcp_url, web: web_url} = ExMoQ.Relay.info(relay)
tcp_url  #=> "tcp://127.0.0.1:4444"
web_url  #=> "http://127.0.0.1:8080"
ExMoQ.Relay.stop(relay)
```

For available options, see `ExMoQ.Relay`.

## Copyright and License

Copyright 2026, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=ex_moq_relay)

[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=ex_moq_relay)

Licensed under the [Apache License, Version 2.0](LICENSE)