Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MQTTAcceptor

Hierarchy

  • EventEmitter
    • MQTTAcceptor

Index

Constructors

constructor

Properties

_interval

_interval: any

bufferMsg

bufferMsg: any

cb

cb: function

Type declaration

    • (tracer: any, msg?: any, cb?: Function): void
    • Parameters

      • tracer: any
      • Optional msg: any
      • Optional cb: Function

      Returns void

closed

closed: boolean

inited

inited: boolean

interval

interval: number

msgQueues

msgQueues: any

rpcDebugLog

rpcDebugLog: any

rpcLogger

rpcLogger: any

server

server: Server

sockets

sockets: any

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

cloneError

  • cloneError(origin: object): object

close

  • close(): void

doSend

  • doSend(socket: any, msg: object): void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

enqueue

  • enqueue(socket: any, msg: object): void

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

flush

  • flush(): void

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listen

  • listen(port: number | string): void

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

on

  • on(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

onSocketClose

  • onSocketClose(socket: object): void

once

  • once(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

processMsg

processMsgs

  • processMsgs(socket: any, pkgs: Array<AcceptorPkg>): void

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number