Class WebSocket
The WebSocket class represents a "tunnel" through which WebSocket messages flow. The class' messages may be deserialized from a SAZ file.
Inheritance
Inherited Members
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public class WebSocket : ITunnel
Fields
listMessages
Declaration
public List<WebSocketMessage> listMessages
Field Value
System.Collections.Generic.List<WebSocketMessage>
|
Properties
EgressByteCount
Returns number of bytes sent from the Client to the Server on this WebSocket
Declaration
public long EgressByteCount { get; }
Property Value
System.Int64
|
Implements
IngressByteCount
Returns number of bytes sent from the Server to the Client on this WebSocket
Declaration
public long IngressByteCount { get; }
Property Value
System.Int64
|
Implements
IsOpen
Is this WebSocket open/connected?
Declaration
public bool IsOpen { get; }
Property Value
System.Boolean
|
Implements
MessageCount
Declaration
public int MessageCount { get; }
Property Value
System.Int32
|
Methods
CloseTunnel()
Interface Method Close the WebSocket and signal the event to let its service thread die. Also called by oSession.Abort() WARNING: This should not be allowed to throw any exceptions, because it will do so on threads that don't catch them, and this will kill the application.
Declaration
public void CloseTunnel()
Implements
OnReceiveFromClient(IAsyncResult)
Called when we have received data from the local client.
Declaration
protected void OnReceiveFromClient(IAsyncResult ar)
Parameters
System.IAsyncResult
ar
The result of the asynchronous operation. |
OnReceiveFromServer(IAsyncResult)
Called when we have received data from the remote host. Incoming data will immediately be forwarded to the local client.
Declaration
protected void OnReceiveFromServer(IAsyncResult ar)
Parameters
System.IAsyncResult
ar
The result of the asynchronous operation. |
ToString()
Declaration
public override string ToString()
Returns
System.String
|