Table of Contents

Class WebsocketExtension

Namespace
Soup
Assembly
Soup-3.0.dll
public class WebsocketExtension : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
WebsocketExtension
Implements
Derived
Inherited Members

Constructors

WebsocketExtension(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public WebsocketExtension(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

WebsocketExtension(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WebsocketExtension(CreationData data)

Parameters

data CreationData

WebsocketExtension(WebsocketExtensionHandle)

protected WebsocketExtension(WebsocketExtensionHandle handle)

Parameters

handle WebsocketExtensionHandle

Methods

Configure(WebsocketConnectionType, HashTable?)

public bool Configure(WebsocketConnectionType connectionType, HashTable? @params)

Parameters

connectionType WebsocketConnectionType
params HashTable

Returns

bool

Exceptions

GException

Throws a GException in case of an error.

GetGType()

public static Type GetGType()

Returns

Type

GetRequestParams()

public string? GetRequestParams()

Returns

string

GetResponseParams()

public string? GetResponseParams()

Returns

string

NewFromPointer(nint, bool)

Creates a new managed WebsocketExtension instance for a given pointer.

public static WebsocketExtension NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WebsocketExtension

NewWithProperties(ConstructArgument[])

Creates a new WebsocketExtension and sets the properties specified by the construct arguments.

public static WebsocketExtension NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WebsocketExtension

ProcessIncomingMessage(ref byte, Bytes)

public Bytes ProcessIncomingMessage(ref byte header, Bytes payload)

Parameters

header byte
payload Bytes

Returns

Bytes

Exceptions

GException

Throws a GException in case of an error.

ProcessIncomingMessageWithLimit(ref byte, Bytes, ulong)

[Version("3.8")]
public Bytes ProcessIncomingMessageWithLimit(ref byte header, Bytes payload, ulong maxOutputSize)

Parameters

header byte
payload Bytes
maxOutputSize ulong

Returns

Bytes

Exceptions

GException

Throws a GException in case of an error.

ProcessOutgoingMessage(ref byte, Bytes)

public Bytes ProcessOutgoingMessage(ref byte header, Bytes payload)

Parameters

header byte
payload Bytes

Returns

Bytes

Exceptions

GException

Throws a GException in case of an error.