Members
CONNECT_ERROR
Sent when a peer is forcefully denied membership of the peer group.
- Source:
DATA
Data message. The meaning of the message is defined by your application.
The data is forwarded to the application via a PeerGroup~event:message event.
- Source:
DUPLICATE_USER_ID
A peer attempted to join a peer group with the same user ID as another
peer that already belongs to the peer group.
- Source:
(constant) ESCAPE_MAP
Mappings between characters that need to be escaped in HTML code (to prevent cross-site
scripting attacks) and their corresponding escape sequences, i.e. HTML character entities.
- Source:
IDENTIFY
A message informing the receiving peer of the sending peer's user ID.
- Source:
PEER_LIST
A message informing the receiving peer of the peer IDs of the other peers
that belong to the peer group.
- Source:
PRIVATE_MSG
Similar to a data message but sent to a single peer rather than to all
peers belonging to the peer group.
- Source:
PROHIBITED
A peer was prevented from joining the peer group because of a human decision
to reject it.
- Source:
Methods
escapeHTML(input)
Escapes a string so that any HTML code contained within it is converted into plain
text.
Parameters:
Name | Type | Description |
---|---|---|
input |
string | undefined | The text to make safe. |
- Source: