ExMoQ.Relay
Runs a moq-relay binary as a supervised OS process from Elixir.
Installation
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.
Usage
{: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
Licensed under the Apache License, Version 2.0