Packages
ex_moq_relay
0.1.0
Runs a moq-relay binary as a supervised OS process that is ready when started
Current section
Files
Jump to
Current section
Files
ex_moq_relay
README.md
README.md
# ExMoQ.Relay
[](https://hex.pm/packages/ex_moq_relay)
[](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)
[](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=ex_moq_relay)
Licensed under the [Apache License, Version 2.0](LICENSE)