So, I have a script.js that installs the server this way:
var io_session = require("express-socket.io-session"); var e_session = require("express-session")({ secret: "a-secret", resave: true, saveUninitialized: true }); (...) //this block is the last "io.use" before the socket logic (io.on("connection")) io.use(io_session(e_session,{ autoSave: true }));
In my environment of typescript / angular2, using the following seed https://github.com/NathanWalker/angular2-seed-advanced I make HTTP requests in several services / components using the Http class.
However, when I try to request the server again for something, I try to register a user session, nothing is logged ... I really donβt know why this is happening, since not only the session is not for the user but the session is not shared with http at socket level system (as is obvious, if it is not created, it is also not shared).
Does anyone know what might be wrong here? I can provide more information if necessary, but I do not know what is missing ... Thank you very much for your help.
source share