From 6f3959baa88ca69e70afc44822307858c4157265 Mon Sep 17 00:00:00 2001 From: kballou Date: Mon, 31 Oct 2016 03:44:45 -0600 Subject: Reverse provided echo lines --- lib/octochat/servers/echo.ex | 1 + mix.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 diff --git a/mix.exs b/mix.exs index a5bd07f..15eaf65 100644 --- a/mix.exs +++ b/mix.exs @@ -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, -- cgit v1.2.1