Git Product home page Git Product logo

Comments (5)

AyushShri avatar AyushShri commented on June 14, 2024 4

Hey @simran2607 , Glad to know you are working on this issue.
It would be really great if you solve this issue.
Also as the issue sounds interesting to me, I would really like to know the implementation methodology that you have in mind for solving this issue. Please let us know the same!
Happy Contributing!

from syntaxmeets.

kothariji avatar kothariji commented on June 14, 2024 2

Hi @simran2607 , great to see you back 🙌.
Thank you so much for taking out time to create this issue 🚀

Yes, Please go forward to work on this issue, I am assigning this issue to you 🔥.

Also localStorage( ) can play a vital role in this. Do check it out 🙌

from syntaxmeets.

simran2607 avatar simran2607 commented on June 14, 2024

Hey @simran2607 , Glad to know you are working on this issue.
It would be really great if you solve this issue.
Also as the issue sounds interesting to me, I would really like to know the implementation methodology that you have in mind for solving this issue. Please let us know the same!
Happy Contributing!

Hey there!
implementation involved : an array at server side which stores all the rooms created. Frontend fetches that array. When user refreshes the page, if the room is present, user is reconnected to its room through socket("joinroom",data) where data is users name and roomId (stored in local-storage) and code is generated from previous users.

Happy contributing!

from syntaxmeets.

AyushShri avatar AyushShri commented on June 14, 2024

Hey @simran2607 , after quickly going through your strategy, I have few doubts about your methodology-

  • Have you implemented any authentication idea for retrieving from the local storage. ( anybody else with the link should not be able to open the code except the one who created or joined the room)
  • What's your strategy for storing and retrieving the code data ? (As you might be knowing, data from sockets is lost once you refresh or close it )
    Rest your idea is good to go for this issue !
    Happy Contributing!

from syntaxmeets.

simran2607 avatar simran2607 commented on June 14, 2024

If a user join then his name and room-id are stored in his local storage. And if reconnects his name and room-id will be used to connect him again as a new user. The user won't be redirected to home page ... And will be connected back .
In this process, authentication is not needed

And link will not be able to join any user whose local storage doesn't contain his name and room-id. And room-ids are generated automatically, so unless u have it u can't join it.

from syntaxmeets.

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.