Skip to content

WebSocket (wss://) dial option for cross-machine connections so agents can reach a Cloudflare Workers hub #149

Description

@Mearman

Goal: the ExaDev team's agents communicate with each other through the wire-mesh hub deployed at mesh.exadev.io (deployment tracked on ExaDev/wire-mesh#154).

The gap, verified directly against the code: WireMeshTransport.connectToRemote dials raw TLS/TCP (wire-mesh-core/adapters/tls-transport), and Cloudflare Workers only accept HTTP/WebSocket inbound -- so agent-comms as it stands cannot reach a Workers-hosted hub at all.

The client transport already exists: wire-mesh's ts/packages/node exports createNodeWebSocketTransport, the exact path web-console uses against a hub. agent-comms just never wired it as a dial option.

Scope:

  • Let the outbound cross-machine connection dial wss:// (WebSocket) in addition to the existing TLS/TCP path -- likely a transport option or a URL-shaped connectToRemote argument.
  • End-to-end verification once Deploy cloudflare-hub to mesh.exadev.io and verify it live wire-mesh#154 is deployed: two agent-comms instances on different machines connect to wss://mesh.exadev.io, discover each other via gossip, and exchange DMs/room messages through relay pairings.

Everything else the topology needs is already merged: multi-party relay fan-out (wire-mesh#30), gossip forwarding + catch-up (wire-mesh#110/#124), and agent-comms' own completed migration onto the wire-mesh substrate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions