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:
parent
76a4512367
commit
7320f0531d
|
@ -0,0 +1,7 @@
|
|||
defmodule POAAgent.Format.PrimusEmitter do
|
||||
@moduledoc false
|
||||
|
||||
def write(event: e, data: d) do
|
||||
%{emit: [e, d]}
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue