remove dep 'component-emitter'#20
Conversation
|
@initial-wu I had to roll back this change because Is there a technical reason why you want to remove component-emitter as a dependency? |
|
socketcluster-server/scserver.js Line 4 in b8b0bed |
|
@initial-wu Right now the philosophy is that front-end and isomorphic modules inherit from the The server-side SCSocket is not strictly an isomorphic module but because it shares a lot of functionality with the client-side SCSocket (which is isomorphic), I thought it would be best if they are consistent. That said, I think the way things are right now is definitely confusing... Maybe we should split up the Note that this is still slightly confusing because client-side != frontend (e.g. you can run socketcluster-client inside Node.js on the backend)... But I guess it's less confusing. Dynamically checking if the module is running in the browser vs server at runtime (and requiring Emitter vs EventEmitter based on that) is likely to be messy. |
No description provided.