Skip to content

Add WebSocket and Server-Sent Events (SSE) support #11

Description

@lonexreb

Summary

Extend discovery pipeline to capture and represent WebSocket and SSE streaming APIs.

Problem

Currently only HTTP request/response traffic is captured. Modern apps heavily use WebSocket (chat, real-time data) and SSE (notifications, live feeds). These appear in CDP but are filtered out.

Implementation

  • Capture WebSocket frames during CDP interception
  • Detect SSE endpoints (Content-Type: text/event-stream)
  • Model streaming APIs in OpenAPI spec extensions
  • Generate clients with async streaming support

Files

  • src/site2cli/discovery/capture.py — CDP WebSocket frame capture
  • src/site2cli/discovery/analyzer.py — streaming pattern detection

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions