You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebSocket RPC calls never resolve under celld dev (Cap'n Web served over Workers WebSocketPair) #178
I have a Worker running under celld dev that serves Cap'n Web RPC using capnweb's own newWorkersRpcResponse helper, no framework involved. Every RPC call made over the WebSocket transport hangs forever, it never resolves and never rejects. This is 100% reproducible, not intermittent. I tested five fresh connections in a row and all five hung on the very first call.
Plain HTTP batch RPC (newHttpBatchRpcSession) against the same worker works every time, so this is isolated to the WebSocket transport.
Environment
celld 0.4.0, run via celld dev
capnweb ^0.12.0
Repro
// worker.ts — run with `celld dev`import{RpcTarget,newWorkersRpcResponse}from'capnweb';interfacePublicApi{hello(name: string): string;}classApiextendsRpcTargetimplementsPublicApi{hello(name: string){return`Hello, ${name}!`;}}exportdefault{fetch(request: Request){returnnewWorkersRpcResponse(request,newApi());},};// client.ts — run against the worker above once `celld dev` is upimport{newWebSocketRpcSession}from'capnweb';conststub=newWebSocketRpcSession('ws://127.0.0.1:9876/api');console.log(awaitstub.hello('first call'));// never resolves
Steps
Start the worker above with celld dev.
Run the client against it.
hello() never resolves, no error, no rejection, on every attempt.
Expected: the call resolves, same as it does over HTTP batch RPC.
Actual: the WebSocket upgrade completes (101 response), but no RPC response ever comes back over it.
Also note: This is proven on the celld side, the same runs properly on wrangler dev. I also have a patch locally that works for celld, but PRs are disabled :(
changed the title [-]WebSocket RPC calls hang after the first message when serving Cap'n Web over a Worker socket[/-][+]WebSocket RPC calls never resolve under celld dev (Cap'n Web served over Workers WebSocketPair)[/+]on Aug 29, 2026
Activity
[-]WebSocket RPC calls hang after the first message when serving Cap'n Web over a Worker socket[/-][+]WebSocket RPC calls never resolve under celld dev (Cap'n Web served over Workers WebSocketPair)[/+]bartlomieju commentedon Aug 29, 2026
Feel free to send patch to bartek[at]Deno.com
bartlomieju commentedon Aug 31, 2026
Thanks, I did use parts of your patch. This will be released later this week.
v0.4.1
v0.4.1
v0.4.1
v0.4.1