6
6
window .webxdc .selfAddr
7
7
```
8
8
9
- A unique string for addressing the user of a running webxdc application.
10
- The address must be
9
+ ` selfAddr ` is a unique string within a webxdc application that
11
10
12
- - identical across multiple invocations of the same webxdc application ,
11
+ - can be used in other webxdc APIs ,
13
12
14
- - identical on multiple devices of the user,
13
+ - should not be shown in the user interface of the webxdc app,
15
14
16
- - must be distinct from other user's addresses participating in the webxdc application.
15
+ - is identical across multiple invocations of the same webxdc application,
17
16
18
- The address should not be shown in the user interface of the webxdc app
19
- except for debugging purposes because it is not guaranteed to be human-readable,
20
- may be long, and may not have any meaning outside the context of the webxdc application.
17
+ - is identical on multiple devices of the user using the same webxdc application,
21
18
22
- A webxdc application can
19
+ - is not guaranteed to be human-readable,
23
20
24
- - send its ` selfAddr ` value around in the payload passed to [ ` sendUpdate() ` ] and
21
+ - should not have meaning outside the webxdc application.
22
+
23
+ For example, a webxdc application can
24
+
25
+ - send its ` selfAddr ` value as part of the ` payload ` passed into [ ` sendUpdate() ` ] ,
25
26
26
27
- receive such addresses through the payload of incoming updates,
27
28
28
29
- put such addresses into the ` notify ` parameter passed to [ ` sendUpdate() ` ]
29
- to cause a user-interface notification for the users behind the addresses .
30
+ to cause a user-interface notification for respective users.
30
31
31
32
32
33
## selfName
@@ -36,6 +37,6 @@ window.webxdc.selfName
36
37
```
37
38
38
39
This is the nick or display name for the webxdc user
39
- which is intended for showing it in the user interface.
40
+ which can be displayed in the user interface for human recognition .
40
41
41
42
[ `sendUpdate()` ] : ./sendUpdate.html
0 commit comments