Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MQTT2Acceptor

Hierarchy

  • EventEmitter
    • MQTT2Acceptor

Index

Constructors

constructor

  • new MQTT2Acceptor(opts: AcceptorOpts, cb: function): MQTT2Acceptor

Properties

_interval

_interval: any

bufferMsg

bufferMsg: any

cb

cb: any

closed

closed: boolean

inited

inited: boolean

interval

interval: number

msgQueues

msgQueues: any

rpcDebugLog

rpcDebugLog: any

rpcLogger

rpcLogger: any

server

server: Server

services

services: any

servicesMap

servicesMap: any

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: Msg): void

doSendHandshake

  • doSendHandshake(socket: any, msg: string): void

emit

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

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

    Returns boolean

enqueue

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

eventNames

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

flush

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listen

  • listen(port: string | number): 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: any): 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

  • processMsg(socket: object, acceptor: MQTT2Acceptor, pkg: AcceptorPkg): void

processMsgs

  • processMsgs(socket: any, acceptor: MQTT2Acceptor, 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

sendHandshake

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