Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Browser Demo

A minimal browser-based remote control panel for Rebind. Connects directly to the WebSocket server served by remote_access.lua – no install required.

Prerequisites

  1. Rebind is running with the Remote Access script started.
  2. The default WebSocket port is 19561.

Demo

disconnected

Mouse

drag to move
--

Keyboard

Clipboard

System

How it works

This page connects directly to the Rebind WebSocket server using the browser’s native WebSocket API. No libraries, no build step. The protocol is plain JSON:

// fire-and-forget (no id)
{"t": "hid.move", "dx": 10, "dy": -5}

// request/response (has id)
{"t": "screen.resolution", "id": 1}
// -> {"id": 1, "width": 1920, "height": 1080}

// subscribe to push events
{"t": "subscribe", "events": ["mouse"]}
// -> {"t": "mouse", "x": 502, "y": 301} (continuous)

The trackpad uses hid.move with pointer deltas. Mouse position is streamed via the mouse subscription. All other buttons send the corresponding command and log the result.

View the page source to see the full implementation – it’s under 200 lines of vanilla JavaScript with no dependencies.