Skip to content
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

EventEmitter deprecated #4

Closed
mariotacke opened this issue Aug 28, 2017 · 1 comment
Closed

EventEmitter deprecated #4

mariotacke opened this issue Aug 28, 2017 · 1 comment

Comments

@mariotacke
Copy link

This module does not seem to work with latest node (v8.4) since the EventEmitter was deprecated.

Error:

[...]\node_modules\websocket.io\lib\socket.js:49
Socket.prototype.__proto__ = EventEmitter.prototype;
                                         ^
                                         
TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> ([...]\node_modules\websocket.io\lib\socket.js:49:42)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> ([...]\node_modules\websocket.io\lib\protocols\drafts.js:12:14)
    at Module._compile (module.js:573:30)

References

@dai-shi
Copy link
Owner

dai-shi commented Aug 31, 2017

Thanks for reporting.
This is still a workaround and may or may not work depending of package load order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants