mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Update pingpong.md
This commit is contained in:
parent
41be48b5f6
commit
535a075a9c
@ -6,10 +6,10 @@ The client and server use a simple PING/PONG protocol to check that they are bot
|
|||||||
digraph g {
|
digraph g {
|
||||||
rankdir=LR
|
rankdir=LR
|
||||||
client [shape=box, style="rounded", label="NATS Client"];
|
client [shape=box, style="rounded", label="NATS Client"];
|
||||||
gnatsd [shape=circle, fixedsize="true", width="1.0", height="1.0", label="nats-server"];
|
natsserver [shape=circle, fixedsize="true", width="1.0", height="1.0", label="nats-server"];
|
||||||
|
|
||||||
client -> gnatsd [label="PING"];
|
client -> natsserver [label="PING"];
|
||||||
gnatsd -> client [label="PONG"];
|
natsserver -> client [label="PONG"];
|
||||||
}
|
}
|
||||||
</code></div>
|
</code></div>
|
||||||
|
|
||||||
@ -25,4 +25,4 @@ The PING/PONG interaction is also used by most of the clients as a way to flush
|
|||||||
|
|
||||||
For example, to set the maximum number of outgoing pings to 5:
|
For example, to set the maximum number of outgoing pings to 5:
|
||||||
|
|
||||||
!INCLUDE "../../_examples/ping_5.html"
|
!INCLUDE "../../_examples/ping_5.html"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user