Hawthorn HTML example

You can use this page to test a Hawthorn installation without any other software. This page also demonstrates how to call the JavaScript functions when implementing your own connector. This is not a usable solution - real use of Hawthorn requires a server-side application that handles authentication.

To obtain keys that work with your server, use the <testkey/> element in your configuration.xml. Keys remain valid for one hour.

For a quick demonstration, do the following:

  1. Fill in the server URL in the 'Init' section.
  2. Click the 'Init connection' button.
  3. Enter channel name, user name, display name, key time, and key in the 'Authorisation details' section. (These should be generated using <testkey/> as above.)
  4. Click the 'Open popup' button and start chatting.

Init

You need to complete this before using any of the other forms. In a real system, a call to the init function would be automatically generated by the server-side system.

URL
URL
URL

Authorisation details

In a real system, these details would be defined as hidden fields or JavaScript variables by the server-side system, which knows the magic number and is able to generate keys itself.

Channel name
User name
Display name
Extra data
Permissions
Key time
Key

Recent messages

Message list

Not yet obtained

Say

Not said anything yet
Message

Ban

Not banned anyone yet
User name
Display name
Extra
Ban length (ms)

Poll

Not polled yet

Leave

Not left yet

Wait for message

Message list

Not yet requested

Open popup

Title

Get logs

In order to get logs, you need to have the a permission (e.g. rwa). Note that you can also request for the special reserved channel name !system to get the system log.

Logs

Not yet requested
Date (YYYY-MM-DD)

View statistics

In order to view statistics, you need to have the permission a on channel !system.

Not yet generated