Skip to content

WebSocket support (RFC 6455) #2

Description

@EdmondDantes

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

  1. added this to the Next milestone on Apr 30, 2026
  2. self-assigned this
    on May 6, 2026
  3. modified the milestones: Next, Next2 on May 16, 2026
  4. moved this from Todo to In Progress in True Async Boardon Jun 26, 2026
  5. 43 remaining items

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions