WebSocket Inspector

Zero-config capture of WebSocket connections and frames via URLSessionWebSocketTask.

DebugSwift automatically monitors WebSocket connections created through URLSessionWebSocketTask. No swizzling configuration or manual registration is required beyond setup().

WebSocket Inspector — connection list

Frame inspection

  • Text and binary frames with timestamps
  • Connection open, close, and error events
  • Per-connection message history
  • Separate tab from HTTP traffic for clarity
WebSocket Inspector — frame detail

Clear WebSocket history

await DebugSwift.Network.shared.clearWebSocketHistory()