This is a client script for communicating between check-in applications and kiosk apps using JSON RPC. Currently it only supports Web Messaging, but it may be expanded with support for other transport mechanisms such as Websockets in the future.
If you're creating a web application, you can use this as a library to interface with the kiosk.
<script src="kiosk-rpc.js">
<script>
// Create a new client
const client = new KioskRpcClient({
connection: "webmessage",
shim: false
});
// Use it to print a label, get app settings, etc
client.PrintLabel(/* ... Label Data ... */);
</script>
String, Required
The connection to use for rpc communication, can be one of:
"webmessage"
- Uses the Web Messaging API to communicate with the host application.
Boolean, Optional, Default: false
Enables the shim for the Rock RMS's built-in checkin website.
To allow the built-in Rock check-in website to print to our clients, add the rpc client to the site as a shim:
<script defer src="kiosk-rpc.js">
<script id="kiosk-rpc-init" type="application/json">
{
"connection": "webmessage",
"shim": true
}
</script>