Skip to content
TheUnknownOne edited this page Feb 24, 2014 · 4 revisions

Introduction

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

Methods

join

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.

reconnect

po:reconnect

This method makes the player reconnect to the server. No parameters are used. Note, there is no solidus at the end!

watch

watchplayer

pm

ignore

info

send [2.4.0+]

setmsg [2.4.1+]

appendmsg [2.4.1+]