diff options
author | kballou <kballou@devnulllabs.io> | 2016-10-31 03:44:45 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2016-10-31 04:03:09 -0600 |
commit | 6f3959baa88ca69e70afc44822307858c4157265 (patch) | |
tree | 97429583ef88767efd3c7e16bbaea60f872af0d3 | |
parent | 3bcdc01d8de970905bf923e5cddc7a567d12de0e (diff) | |
download | octochat-6f3959baa88ca69e70afc44822307858c4157265.tar.gz octochat-6f3959baa88ca69e70afc44822307858c4157265.tar.xz |
Reverse provided echo linesv0.3.1
-rw-r--r-- | lib/octochat/servers/echo.ex | 1 | ||||
-rw-r--r-- | mix.exs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/octochat/servers/echo.ex b/lib/octochat/servers/echo.ex index bea9864..b0bd515 100644 --- a/lib/octochat/servers/echo.ex +++ b/lib/octochat/servers/echo.ex @@ -16,6 +16,7 @@ defmodule Octochat.Echo do def handle_info({:tcp, _, msg}, state = %{socket: socket}) do msg + |> String.reverse() |> write_line!(socket) {:noreply, state} end @@ -5,7 +5,7 @@ defmodule Octochat.Mixfile do [app: :octochat, description: "Demo Application for How Swapping Code", package: package(), - version: "0.3.0", + version: "0.3.1", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, |