How to use the @protobufjs/eventemitter.call function in @protobufjs/eventemitter

To help you get started, we’ve selected a few @protobufjs/eventemitter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rochdev / datadog-tracer-js / src / tracer.js View on Github external
constructor (config) {
    super()
    EventEmitter.call(this)

    const service = config.service
    const endpoint = config.endpoint
    const hostname = config.hostname || 'localhost'
    const port = config.port || 8126
    const protocol = config.protocol || 'http'

    this._service = service
    this._endpoint = new Endpoint(endpoint || `${protocol}://${hostname}:${port}`)
    this._propagators = {
      [opentracing.FORMAT_TEXT_MAP]: new TextMapPropagator(),
      [opentracing.FORMAT_HTTP_HEADERS]: new TextMapPropagator(),
      [opentracing.FORMAT_BINARY]: new BinaryPropagator()
    }
  }

@protobufjs/eventemitter

A minimal event emitter.

BSD-3-Clause
Latest version published 7 years ago

Package Health Score

79 / 100
Full package analysis

Popular @protobufjs/eventemitter functions

Similar packages