WebSocket
The WebSocket class represents websocket connections in the page.
Methods
IsClosed
Added before v1.9Indicates that the web socket has been closed.
Usage
WebSocket.IsClosed
Returns
Url
Added before v1.9Contains the URL of the WebSocket.
Usage
WebSocket.Url
Returns
Events
event Close
Added before v1.9Fired when the websocket closes.
Usage
WebSocket.Close += async (_, webSocket) => {};
Event data
event FrameReceived
Added in: v1.9Fired when the websocket receives a frame.
Usage
WebSocket.FrameReceived += async (_, webSocketFrame) => {};
Event data
event FrameSent
Added in: v1.9Fired when the websocket sends a frame.
Usage
WebSocket.FrameSent += async (_, webSocketFrame) => {};
Event data
event SocketError
Added in: v1.9Fired when the websocket has an error.
Usage
WebSocket.SocketError += async (_, value) => {};
Event data