tj / axon

message-oriented socket library for node.js heavily inspired by zeromq
MIT License
1.5k stars 155 forks source link

Deprecated prototypical inheritance #172

Open maksbd19 opened 3 years ago

maksbd19 commented 3 years ago

Hi I found this line in the code to modify the prototype of Socket. I understand this approach is deprecated and also discouraged.

Socket.prototype.__proto__ = Emitter.prototype;

https://github.com/tj/axon/blob/e70a1649c68868de167ec5e132c61dd8f52f7645/lib/sockets/sock.js#L60