Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 2.69 KB

README.md

File metadata and controls

78 lines (60 loc) · 2.69 KB

Textractor WebSocket

Description

An extension for Textractor written in Rust that opens a WebSocket locally on port 6677 and sends the text from Textractor to all the connected clients.

A WebSocket client such as texthooker-ui can stream the text by the server and display it to your browser.

Build

If you want to build the DLL yourself, you can follow the instructions below. Otherwise, skip to the Install section.

Ensure you have Rust installed. The installation instructions can be found here. Then you can build the DLL with

# For x86
cargo build --release --target i686-pc-windows-gnu

# For x64
cargo build --release --target x86_64-pc-windows-gnu

Install

Pre-compiled binaries are available in the Releases page

  1. Download, unzip, and copy the x86 DLL file into your Textractor/x86 folder
  2. Download, unzip, and copy the x64 DLL file into your Textractor/x64 folder
  3. Open up Textractor/x86/Textractor.exe, click Extensions, right click inside the Extensions dialog box, click Add extension, change the file extension in the file picker dialog from *.xdll to *.dll, and select textractor_websocket_x86.dll inside the Textractor/x86 folder from Step 1.
  4. Open up Textractor/x64/Textractor.exe, click Extensions, right click inside the Extensions dialog box, click Add extension, change the file extension in the file picker dialog from *.xdll to *.dll, and select textractor_websocket_x64.dll inside the Textractor/x64 folder from Step 2.
Expected file structure
Textractor
├── x64
    └── Textractor.exe
    └── textractor_websocket_x64.dll
    └── ...
├── x86
    └── Textractor.exe
    └── textractor_websocket_x86.dll
    └── ...

Usage

After installing the extension, when you start Textractor and have selected a text thread, Textractor will automatically start the server and is available at ws://localhost:6677

You will need a WebSocket client such as texthooker-ui to stream the text and display it to your browser