WebSocket connection troubleshooting

When the browser cannot reach the local client, check service status, firewall, and extensions—align UX with error handling.

Common symptoms

SymptomLikely cause
getConnectStatus falseClient not running
TimeoutFirewall/AV blocks 127.0.0.1

Troubleshooting steps

  1. Start the desktop client
  2. Check port in client UI
  3. Test with firewall/AV disabled briefly
  4. Try another browser
  5. Log via getConnectStatus / formatPrintError

Prevention

  • Auto-start client on boot for kiosks
  • Train users: connect client before print

Read next

FAQ

Fixed port?

Shown in client UI; npm auto-connects by default.

HTTPS page + ws?

127.0.0.1 ws usually works; check mixed content.

Frontend in Docker?

Client must run on the user PC host.

Remote print WebSocket?

Local client ws + server push channel—remote-print guide.

User-friendly errors?

Use formatPrintError—error-handling guide.

Client deployment by platform

The same web-print-pdf front-end runs on Windows, macOS, and Linux/domestic OS—install the matching client on each desktop.

Download client — free trial View npm package Documentation