Skip to content

Ping Pong

Jaume Martin edited this page Nov 30, 2017 · 7 revisions
Endpoint                              Server
                  Normal case

          ULID: ulid, CMD: Ping
   +--------------------------------------->
                                           |
                                           |
      ULID: ulid, CMD: Ping, Result: Pong  |
   <---------------------------------------+
Endpoint                                Server
                   Special case
                Command no provided


          ULID: ulid, CMD: nil
  +----------------------------------------->
                                            |
                                            |
     ULID: ulid, errorMsg: Invalid command  |
  <-----------------------------------------+
  |
  |
  |      ULID: ulid, CMD: ping
  +----------------------------------------->
                                            |
                                            |
      ULID: ulid, CMD: ping, Result: Pong   |
  <-----------------------------------------+
Endpoint                                Server
                   Special case
                   Invalid ULID


          ULID: nil, CMD: ping
  +----------------------------------------->
                                            |
                                            |
     ULID: nil, errorMsg: ulid not valid    |
  <-----------------------------------------+
  |
  |
  |      ULID: ulid, CMD: ping
  +----------------------------------------->
                                            |
                                            |
      ULID: ulid, CMD: ping, Result: Pong   |
  <-----------------------------------------+

Back

Clone this wiki locally