Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebSocketCloseArgs

Close arguments for the fm.icelink.webSocket class.

Hierarchy

  • Dynamic
    • WebSocketCloseArgs

Index

Constructors

constructor

  • Creates a new instance of fm.icelink.webSocketCloseArgs with default values.

    Returns WebSocketCloseArgs

Properties

Private _onComplete

_onComplete: IAction1<WebSocketCloseCompleteArgs>
internal

Private _reason

_reason: string
internal

Private _statusCode

_statusCode: WebSocketStatusCode
internal

Methods

getDynamicProperties

  • getDynamicProperties(): Hash<string, Object>
  • Gets the dynamic properties on this instance.

    Returns Hash<string, Object>

getDynamicValue

  • getDynamicValue(key: string): Object
  • Gets a property value from the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    Returns Object

    The stored value, if found; otherwise null.

getIsDirty

  • getIsDirty(): boolean
  • Gets a value indicating whether this instance is dirty.
    internal

    Returns boolean

getIsSerialized

  • getIsSerialized(): boolean

getOnComplete

  • getOnComplete(): IAction1<WebSocketCloseCompleteArgs>
  • Gets the callback to execute when the connection is closed.

    Returns IAction1<WebSocketCloseCompleteArgs>

getReason

  • getReason(): string
  • Gets the reason to send with the close frame.

    Returns string

getSerialized

  • getSerialized(): string

getStatusCode

  • getStatusCode(): WebSocketStatusCode
  • Gets the status code to send with the close frame.

    Returns WebSocketStatusCode

getTypeString

  • getTypeString(): string

setDynamicProperties

  • setDynamicProperties(value: Hash<string, Object>): void
  • internal

    Parameters

    • value: Hash<string, Object>

    Returns void

setDynamicValue

  • setDynamicValue(key: string, value: Object): void
  • Sets a property value in the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    • value: Object

      The property value. This can be any object that needs to be stored for future use.

    Returns void

setIsDirty

  • setIsDirty(value: boolean): void
  • Sets a value indicating whether this instance is dirty.
    internal

    Parameters

    • value: boolean

    Returns void

setIsSerialized

  • setIsSerialized(value: boolean): void
  • internal

    Parameters

    • value: boolean

    Returns void

setOnComplete

  • setOnComplete(value: IAction1<WebSocketCloseCompleteArgs>): void
  • Sets the callback to execute when the connection is closed.

    Parameters

    • value: IAction1<WebSocketCloseCompleteArgs>

    Returns void

setReason

  • setReason(value: string): void
  • Sets the reason to send with the close frame.

    Parameters

    • value: string

    Returns void

setSerialized

  • setSerialized(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setStatusCode

  • setStatusCode(value: WebSocketStatusCode): void
  • Sets the status code to send with the close frame.

    Parameters

    • value: WebSocketStatusCode

    Returns void

unsetDynamicValue

  • unsetDynamicValue(key: string): boolean
  • Unsets a property value in the local cache.

    Parameters

    • key: string

      The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions.

    Returns boolean

    true if the value was removed; otherwise, false.