This document discusses using websockets to control a USB device like a cash drawer from a Rails application. It proposes opening a websocket connection to a server, sending an event when the submit button is clicked, and having a script listen for that event and trigger the USB device. Specifically, it will use the Pusher service and its websocket addon on Heroku to send events which a Ruby script listening via Pusher's client library will receive and use to execute a Windows program opening the cash drawer. This allows a web app to interface with USB/hardware without needing native access.