Class WebSocketFrameInterceptEventArgs
Frame-level interception context for an active WebSocket session.
Inherited Members
Namespace: Titanium.Web.Proxy.EventArguments
Assembly: Titanium.Web.Proxy.dll
Syntax
public class WebSocketFrameInterceptEventArgs : ProxyEventArgsBase
Properties
| Edit this page View SourceAction
Interception action. Defaults to Forward.
Declaration
public WebSocketFrameInterceptAction Action { get; set; }
Property Value
| Type | Description |
|---|---|
| WebSocketFrameInterceptAction |
Data
Unmasked payload bytes (copied; safe to retain).
Declaration
public byte[] Data { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Delay
Optional delay applied before the frame is written (Forward/Replace only).
Declaration
public TimeSpan Delay { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Direction
Frame direction.
Declaration
public WebSocketFrameDirection Direction { get; }
Property Value
| Type | Description |
|---|---|
| WebSocketFrameDirection |
IsFinal
FIN bit.
Declaration
public bool IsFinal { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OpCode
Frame opcode.
Declaration
public WebsocketOpCode OpCode { get; set; }
Property Value
| Type | Description |
|---|---|
| WebsocketOpCode |
Session
Owning HTTP session (WebSocket upgrade).
Declaration
public SessionEventArgs Session { get; }
Property Value
| Type | Description |
|---|---|
| SessionEventArgs |
Methods
| Edit this page View SourceDrop()
Convenience: drop this frame.
Declaration
public void Drop()
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 |