forked from kataras/neffos.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ascii_outline.txt
39 lines (39 loc) · 3.5 KB
/
ascii_outline.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
+-----------------------+
| | +----------------------------+
| Conn +---------------------------+.ID |
| | |.write(Message {...} ) |
+----------+------------+ |.ask (Message {...} ) |
| +----------------------------+
| |.close () |
| |.isClosed() |
| +----------------------------+
+----------------------+ |.waitServerConnect() |
|.connect("namespace") | |.namespace ("namespace") |
+-----+----------------+ |.disconnectAll() |
| +----------------------------+
|
|
| +--------------------------+
+-----+----------------+ | Message { |
| | +----------------------------+ | |
| NSConn +-----------------+.emit("event", body) +------+ Namespace: "namespace", |
| | +----------------------------+ | Event: "event", |
+-----+----------------+ |.disconnect() | | Body: body, |
| +----------------------------+ | |
| |.ask ("event", body) | | } |
| |.room ("roomName") | +--------------------------+
+----------------------+ |.rooms |
|.joinRoom("roomName") | |.leaveAll() |
+-------+--------------+ +----------------------------+
|
|
| +--------------------------+
| | Message { |
+-------+--------------+ | |
| | +----------------------------+ | Namespace: "namespace", |
| Room +-----------+.emit("event", body) +------+ Room: "roomName", |
| | +----------------------------+ | Event: "event", |
+----------------------+ |.leave() | | Body: body, |
+----------------------------+ | |
| } |
+--------------------------+