Open Mad-Head opened 9 years ago
Did you find a solution for this?
Im trying to implement kind of the same, one server for http and other for https, when the second one gets online, they work for http request for browser normal, but not for websocket
I'm trying to run two http server on different ports using sticky-session.
sticky (http.createServer (require ('../ app'))). listen ( 3000 , function () { console.log ('server started on 3000 port'); });
sticky (http.createServer (require ('../ secondapp'))). listen ( 3006 , function () { console.log ('server started on 3006 port'); });
This leads to the fact that at the two servers can knock , but both ports we get to the last application.