Closed jussikinnula closed 8 years ago
With NodeJS 6 + Angular 2 + Socket.io, there's a case that response doesn't have setEncoding function set. To fix that just add simple check if response exists with the setEncoding property.
The problem can be tested with this app (by removing the hotfixes): https://github.com/jussikinnula/angular2-socketio-chat-example
Thanks! Looks good, merging.
I just published 1.5.3 on npm. Your fix is included.
With NodeJS 6 + Angular 2 + Socket.io, there's a case that response doesn't have setEncoding function set. To fix that just add simple check if response exists with the setEncoding property.
The problem can be tested with this app (by removing the hotfixes): https://github.com/jussikinnula/angular2-socketio-chat-example