Search Results for

    Show / Hide Table of Contents

    Class WebSocketFrameInterceptEventArgs

    Frame-level interception context for an active WebSocket session.

    Inheritance
    object
    EventArgs
    ProxyEventArgsBase
    WebSocketFrameInterceptEventArgs
    Inherited Members
    ProxyEventArgsBase.ClientUserData
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.EventArguments
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class WebSocketFrameInterceptEventArgs : ProxyEventArgsBase

    Properties

    | Edit this page View Source

    Action

    Interception action. Defaults to Forward.

    Declaration
    public WebSocketFrameInterceptAction Action { get; set; }
    Property Value
    Type Description
    WebSocketFrameInterceptAction
    | Edit this page View Source

    Data

    Unmasked payload bytes (copied; safe to retain).

    Declaration
    public byte[] Data { get; set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    Delay

    Optional delay applied before the frame is written (Forward/Replace only).

    Declaration
    public TimeSpan Delay { get; set; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    Direction

    Frame direction.

    Declaration
    public WebSocketFrameDirection Direction { get; }
    Property Value
    Type Description
    WebSocketFrameDirection
    | Edit this page View Source

    IsFinal

    FIN bit.

    Declaration
    public bool IsFinal { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    OpCode

    Frame opcode.

    Declaration
    public WebsocketOpCode OpCode { get; set; }
    Property Value
    Type Description
    WebsocketOpCode
    | Edit this page View Source

    Session

    Owning HTTP session (WebSocket upgrade).

    Declaration
    public SessionEventArgs Session { get; }
    Property Value
    Type Description
    SessionEventArgs

    Methods

    | Edit this page View Source

    Drop()

    Convenience: drop this frame.

    Declaration
    public void Drop()
    | Edit this page View Source

    Replace(byte[], WebsocketOpCode?)

    Convenience: replace the payload (and optionally opcode) then forward.

    Declaration
    public void Replace(byte[] newData, WebsocketOpCode? opCode = null)
    Parameters
    Type Name Description
    byte[] newData
    WebsocketOpCode? opCode
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX