Packages
abyss
0.2.1
1.0.0-rc.21
1.0.0-rc.20
1.0.0-rc.19
1.0.0-rc.18
1.0.0-rc.17
1.0.0-rc.16
1.0.0-rc.15
1.0.0-rc.14
1.0.0-rc.13
1.0.0-rc.12
1.0.0-rc.11
1.0.0-rc.10
1.0.0-rc.9
1.0.0-rc.8
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
Abyss is a pure Elixir UDP server
Current section
Files
Jump to
Current section
Files
README.md
# Abyss
[](https://github.com/gsmlg-dev/abyss/actions/workflows/release.yml)
[](https://hex.pm/packages/abyss)
[](https://hexdocs.pm/abyss)
---
## Installation
The package can be installed by adding `abyss` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:abyss, "~> 0.2.1"}
]
end
```
## Run Example
```shell
# run service
mix run --no-halt -e 'Code.require_file("example/echo.ex"); Abyss.Logger.attach_logger(:trace); Abyss.start_link(handler_module: Echo, port: 1234); Process.sleep(3600_000); '
mix run --no-halt -e 'Abyss.Logger.attach_logger(:trace); Abyss.start_link(handler_module: Abyss.Echo, port: 1234); Process.sleep(300_000); '
# test
while true
do
echo "Hello, UDP $(date +%T)" | nc -4 -u -w1 127.0.0.1 1234
done
```