Skip to content

(node:6620) DeprecationWarning: process.EventEmitter is deprecated. use require('events') instead. #55

Open
@ahysing

Description

@ahysing

As a user of node module robohydra I am experiencing a warning when running on node.js v6.1.0 on windows. The error appears on start of my application, and is listed as a warning.

(node:6620) DeprecationWarning: process.EventEmitter is deprecated. use require('events') instead.

After trail and error I found that the warning disappears if the line https://github.com/LearnBoost/websocket.io/blob/master/lib/socket.js#L6 is changed from

var EventEmitter = process.EventEmitter

to

var EventEmitter = require('events')

websocket.io is used as an external dependancy to robohydra.
All features runs just fine. However no websockets are in use in our system, and I am not capable of testing this change. Please help.

ps: I have noted the maintainers of robohydra. thie issue is filed in robohydra/robohydra#24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions