Giter Club home page Giter Club logo

Comments (5)

wcamarao avatar wcamarao commented on June 16, 2024

if you stringify storeSession it will loose its reference so it makes sense that you're loosing session state. try not to parse/stringify storeSession, using .save() like in the example.

BTW, if you run the example, does it work on your local?

from session.socket.io.

nofear87 avatar nofear87 commented on June 16, 2024

thank you for fast answering and sorry for my bad english

i have two diffrent problems i think.

how can i read all stored session.usernames or session.active variable out of the session store (admin should see all active users)? that is the first problem.

the second problem is that on socket disconnect the sessionStore isnt updated i dont using stringify or somethink else there.

from session.socket.io.

wcamarao avatar wcamarao commented on June 16, 2024

I'm not sure how to help you other than asking you to first thing make sure you can run the example in your local. Can you give it a try and let us know how that goes?

from session.socket.io.

nofear87 avatar nofear87 commented on June 16, 2024

Yes local it works :-)
I dont know how to browse the sessionStore?

I need something like this:

Foreach (sessionStore as Key){
html += key.username}

bla.html(html)

So i get all usernames from all sessions.

But i dont have an idea to solve this.

from session.socket.io.

wcamarao avatar wcamarao commented on June 16, 2024

The sessionStore is not part of this repository. It's an external dependency from either connect or connect-redis.

So, if you're using:

from session.socket.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.