Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IPlurkClientEventEmitter

Implemented by

Index

Methods

Methods

on

  • on(event: "comet", listener: function): this
  • on(event: "error", listener: function): this
  • on(event: string, listener: function): this
  • Event callback on comet channel responses. This will be called even on comet channel does not returns any new push. This event fires before any other comet channel events. The fields are already converted to JavaScript types just like the resolved promise in request().

    Parameters

    • event: "comet"
    • listener: function
        • (comet: any): void
        • Parameters

          • comet: any

          Returns void

    Returns this

  • General error callback from comet channel.

    Parameters

    • event: "error"
    • listener: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns this

  • Event callback on comet channel receives each data push. It is already filtered by push event types as you defined in event parameter and converted to JavaScript types just like the resolved promise in request(). For more info please check out comet channel specification section in API reference.

    Parameters

    • event: string

      Can be new_plurk, new_response or any others which supported.

    • listener: function
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    Returns this

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc