Implement WebSocket support per RFC 6455. ## Scope - Upgrade handshake from HTTP/1.1 (`Upgrade: websocket`) and HTTP/2 (`:protocol = websocket`, RFC 8441). - Full-duplex frame I/O: text, binary, ping/pong, close. - Fragmentation, control-frame rules, masking validation. - Permessage-deflate extension (RFC 7692) — optional, behind a flag. - Backpressure on send queue; integration with the existing CoDel read-side pausing. - Public PHP API surface (`onUpgrade`, `WebSocket` connection object, send/receive coroutines). - PHPT tests + fuzzing harness for the frame parser. ## Acceptance - Autobahn TestSuite green for required cases. - Works on both HTTP/1.1 and HTTP/2 transports. - Memory-leak clean under ASan.
Activity
docs: add WebSocket implementation plan
feat(static): wire dispatch FSM, end-to-end serve (issue #13)
docs(static): update PLAN_STATIC_HANDLER status section
fix(tls): heap-owned cipher span in tls_drain — peer "bad record mac"…
fix(tls): gate SSL_write on cipher_inflight — peer "bad record mac" u…
feat(queue): lock-free MPSC/SPSC inter-thread queue + reactor mailbox (…
43 remaining items
refactor(websocket): trim room comments to what the code cannot show (#2
fix(websocket): room lifetime, races and lost commands (#2)
refactor(websocket): trim room comments that restate the code (#2)
feat(websocket): cross-worker pub/sub topics, interest filter, freed-…
Merge branch 'main' into 2-ws-cross-worker-rooms (#2)
fix(websocket): topic hub belongs to the server, not the thread (#2)
test(websocket): topics on every transport — PMCE, H2, TLS, backpress…
feat(websocket): rate-limit publish() per connection (#120), e2e agai…
style(websocket): names, const and comments that had stopped being tr…
Merge branch 'main' into 2-ws-cross-worker-rooms; drop the hub's dead…
style(websocket): split ws_hub_count, drop the last duplicated code (#2)
test(websocket): 042 must not assume a peer lands on another worker (#2)
fix(websocket): meter publish() on the connection, not the session (#120
Merge pull request #129 from true-async/2-ws-topics-fuzz-oracle-tests
Merge pull request #118 from true-async/2-ws-cross-worker-rooms