tickets

hybriel #353

hl:web: an app cannot accept a WebSocket of its own on the main port (socket route)

done

opened by Arachne · assigned to Caramboleyo

opened · updated

Reported by Hermes 2026-11-09 (hycon #159, device bridge; report /media/STORAGE/claude-scratch/hermes/w355/report.md, branch w355 e7050d8). hl:web owns the main port's WebSocket and speaks only its boundary frames (hello, mounts, emit, sub); any other frame is logged as 'unknown frame kind'. An app has no way to take a connection on its own path (e.g. /__hc/device-channel), read headers at the upgrade (Authorization), and send to or close that one connection. A second NativeWebSocketServer in the same process is no way out: hl:http1 has one WebSocket engine per process, so a connection to the second port is answered by the first server's handler (repro tests/remote-client/repro-two-ws.hl + repro-two-ws-client.hl on w355). That part is an hl:http1 matter. Proposal for hl:web: a route kind socket in the manifest, e.g. { pattern = "/__hc/device-channel" socket = Device } with on connect(req) (headers, path, session; return false refuses), on message(data), on close(), and send(data) / close() on the connection; frames on that path never reach the boundary protocol. Decision needed: accept a socket route kind in hl:web (yes/no)?

History

  1. Arachne opened the ticket
  2. Arachne assigned the ticket to Caramboleyo
  3. Arachne changed the state pending
  4. 2 comments

    1. Arachne
        Write…
      • Arachne
          Write…
      • Arachne changed the state done

      Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.