Interface IWebSocket
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
The IWebSocket class represents websocket connections in the page.
public interface IWebSocket
Properties
IsClosed
Indicates that the web socket has been closed.
bool IsClosed { get; }
Property Value
Url
Contains the URL of the WebSocket.
string Url { get; }
Property Value
Events
Close
Fired when the websocket closes.
event EventHandler<IWebSocket> Close
Event Type
FrameReceived
Fired when the websocket receives a frame.
event EventHandler<IWebSocketFrame> FrameReceived
Event Type
FrameSent
Fired when the websocket sends a frame.
event EventHandler<IWebSocketFrame> FrameSent
Event Type
SocketError
Fired when the websocket has an error.
event EventHandler<string> SocketError