Introduce module to format WS messages how the server expects them

This is what the dashboard server expects. At the moment this is here
to capture what we discovered about the Node agent which uses Primus.
This commit is contained in:
Joseph Yiasemides 2018-05-07 16:36:37 +02:00
parent 76a4512367
commit 7320f0531d
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
defmodule POAAgent.Format.PrimusEmitter do
@moduledoc false
def write(event: e, data: d) do
%{emit: [e, d]}
end
end