Open kingthrillgore opened 6 years ago
sticky
really isn't a function, you need to use
if (!sticky.listen(HttpServer, APP_PORT)) {
HttpServer.once('listening', function () {
console.log("Server listening at port %d", APP_PORT);
});
}
And hint for you - try to use websockets instead of http-polling, and you will not need sticky
.
I know this library isn't getting much support, but I am seeing a recurring issue with the latest npm version (1.1.2) and Express (4.16.2) and a TypeError that goes against an example of using stickysession as specified for Express: