Table of Contents

Class FireflyExtensions

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.dll
public static class FireflyExtensions
Inheritance
object
FireflyExtensions

Methods

IsUpgradeableConnectionAsync(IActionContext, string)

public static bool IsUpgradeableConnectionAsync(this IActionContext ctx, string upgrade = "websocket")

Parameters

ctx IActionContext
upgrade string

Returns

bool

UpgradeWebSocketAsync(IActionContext)

public static Task<IWebSocketConnection> UpgradeWebSocketAsync(this IActionContext ctx)

Parameters

ctx IActionContext

Returns

Task<IWebSocketConnection>

UpgradeWebSocketAsync(IActionContext, WebSocketConnectionOptions)

public static Task<IWebSocketConnection> UpgradeWebSocketAsync(this IActionContext ctx, WebSocketConnectionOptions options)

Parameters

ctx IActionContext
options WebSocketConnectionOptions

Returns

Task<IWebSocketConnection>

UpgradeWebSocketAsync(IActionContext, string)

public static Task<IWebSocketConnection> UpgradeWebSocketAsync(this IActionContext ctx, string subprotocol)

Parameters

ctx IActionContext
subprotocol string

Returns

Task<IWebSocketConnection>

UpgradeWebSocketAsync(IActionContext, string, TimeSpan)

public static Task<IWebSocketConnection> UpgradeWebSocketAsync(this IActionContext ctx, string subprotocol, TimeSpan keepAliveInterval)

Parameters

ctx IActionContext
subprotocol string
keepAliveInterval TimeSpan

Returns

Task<IWebSocketConnection>