Project 'dunixir/dunixir' was moved to 'teaching/dunixir'. Please update any links and bookmarks that may still have the old path.
Resolve "Retransmission à toutes les connexions WS2P actives"
All threads resolved!
All threads resolved!
Closes #185 (closed)
Edited by JAUJAY Augustin
Merge request reports
Activity
added Scénario 1 WS2P + 1 deleted label
assigned to @n18abdel
- Resolved by ABDELGHANI Nassim
Vous en pensez quoi, de la structure, etc ? @a19jauja @c21girot @p19poupa
Je sais pas trop comment tester autrement que manuellement
Voilà un exemple de test pour la fonction
WS2P.ConnectionSupervisor.bounce
:- Ouvrir 3 terminaux
1er terminal
iex -S mix
2ème terminal
WS2P_PORT=20901 HTTP_PORT=8086 iex -S mix
iex> WS2P.Endpoint.connect!({"localhost", 20900})
3ème terminal
WS2P_PORT=20902 HTTP_PORT=8087 iex -S mix
iex> WS2P.Endpoint.connect!({"localhost", 20900})
1er terminal
iex> identity = Poison.decode!("{\"version\":10,\"uid\":\"tic\",\"sig\":\"1eubHHbuNfilHMM0G2bI30iZzebQ2cQ1PC7uPAw08FGMMmQCRerlF/3pc4sAcsnexsxBseA/3lY03KlONqJBAg==\",\"pubkey\":\"DNann1Lh55eZMEDXeYt59bzHbA3NJR46DeQYCS2qQdLV\",\"currency\":\"duniter_unit_test_currency\",\"buid\":\"0-E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855\"}") iex> WS2P.ConnectionSupervisor.bounce({:identity, identity}) [:ok, :ok]
- Dans les terminaux 2 et 3, vous devriez voir le document qui est reçu
Edited by ABDELGHANI Nassim
requested review from @a19jauja
mentioned in commit 76b74c68
Please register or sign in to reply