-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(node:6620) DeprecationWarning: process.EventEmitter is deprecated. use require('events') instead. #55
Comments
Thanks a lot, Andreas Dreyer Hysing!!!!!!! its working. I have changed where var EventEmitter = process.EventEmitter is defined to var EventEmitter = require('events') |
[fixes LearnBoost#55][fixes LearnBoost#54]
Also have the same problem: |
This also works on OSX-Mac running Node v7.7.4 var EventEmitter = process.EventEmitter Thanks ahysing, you save my day. |
So which version of node this now supports? |
I changed the var EventEmitter = process.EventEmitter for different .js files but I found this Socket.prototype.$emit = EventEmitter.prototype.emit; It is some kind of function, I have no idea how to change it. The command prompt warn this line has something wrong. Actually, I am trying to use tuio.js(https://github.com/fe9lix/Tuio.js), this problem lead me here. Any solutions for the case? Thank you very much! |
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.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
to
websocket.io
is used as an external dependancy torobohydra
.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
The text was updated successfully, but these errors were encountered: