Skip to content

Gohperon protocol

Junichi Kajiwara edited this page Apr 25, 2018 · 5 revisions

Overview

client.js <--+--> gopheron.go <-+-> gopheron_view.js <==> main.js
             |                  |                           ^
gopheronrc <-+                  +---------------------------+

<-> : socket.io
<=> : ipc

External Commands

gopher send

show messages.

gopher stop

stop moving.

gopher front

bring to front.

Internal Commands

news

show messages.

stop

stop moving.

front

bring to front.

                                         
       +-----------+    +------------+  
       | client 1  |    | client 2   |  
       |           |    |            |  
       +-----+-----+    +-----+------+
             |                  |
             +----------+-------+
                        |
                        v
             +--------------------+
             |  gopheron.go       |
             |                    |
             +----------+---------+
                        ^
                        |
          +-------------+-------+
          |                     |
          v                     v
     +---------+      +------------------+
     | main.js |      | gopheron_view.js | 
     |         |      |                  |
     +---------+      +------------------+