Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApolloWSOptions

Options for configuring the ApolloWSHandler.

Hierarchy

  • ApolloWSOptions

Index

Constructors

constructor

Methods

getKeepAlive

  • getKeepAlive(): number
  • Set the interval in milliseconds to send KEEPALIVE messages to all clients. Defaults to 30000.

    Returns number

getOrigin

  • getOrigin(): string
  • Set the Origin for this handler, by default it will be null.

    Returns string

setKeepAlive

  • Set the interval in milliseconds to send KEEPALIVE messages to all clients. Defaults to 30000.

    Parameters

    • keepAlive: number

    Returns ApolloWSOptions

setOrigin

  • Set the Origin for this handler, by default it will be null.

    Parameters

    • origin: string

    Returns ApolloWSOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc