-
Notifications
You must be signed in to change notification settings - Fork 170
po: Protocol
The PO protocol (scheme) is enabled in channel chat, and enables additional client-side functionality specified by a developer using anchors (HTML anchor tag: ). The user must click the anchor for the functionality, so it is secure.
To be used, the developer must send an HTML message using server-side sys.sendHtmlAll
, client-side client.printHtml
(and similar functions), or manually through the network protocol (however you want to do it). It must be used inside the href attribute of an a tag (anchor). The syntax is po:method/parameter
po:join/channel
Parameter: channel name
This method makes the player join the supplied channel. Additionally, the client will focus on the channel if the player is already in it.
po:reconnect
This method makes the player reconnect to the server. No parameters are used. Note, there is no solidus at the end!