Coder Social home page Coder Social logo

New User bug about signalr-chat HOT 4 CLOSED

akouki avatar akouki commented on May 29, 2024
New User bug

from signalr-chat.

Comments (4)

Vinod1144 avatar Vinod1144 commented on May 29, 2024

It is even the same when i login with one person and in incognito mode i login with different person then in 1st login i didn't see the name of 2nd person who login.

Thanks.

from signalr-chat.

AKouki avatar AKouki commented on May 29, 2024

Hello, i tried to simulate your problem and i used 3 browsers (Chrome, Edge, and Firefox). I also tried to register/login with 3rd account in icognito mode and i had no problem.

If this happens only in feature/dm branch (now deleted), and in private chat window, sorry i can't provide any solution for it as it was an unofficial-fast solution.

If youre using an older version, please:

  • Re-create the database
  • Delete cookies from your browsers

If you refering to the 1-2 seconds delay before showing the profile avatar/name when you login, this is normal as it waits server to get the profile info. You can just hide all profile section or add some spinner while data user profile data loading. Again it was working fine and i had not to F5.

from signalr-chat.

Vinod1144 avatar Vinod1144 commented on May 29, 2024

I'm trying with latest code and everything recreated and delete cookies but still issue is their,

can you show me the code where other Online users are get to know the new user is arrived and you were adding them into the existing online users list?

from signalr-chat.

AKouki avatar AKouki commented on May 29, 2024

Everything is in ChatHub.cs

When an user joins to a room it sends message to the other users in the previous room to remove this user. Then it notifies users in new room to add this user.

Join method:
await Clients.OthersInGroup(user.CurrentRoom).SendAsync("removeUser", user);
await Clients.OthersInGroup(roomName).SendAsync("addUser", user);

Currently you can have one user only in one room. It does not support multiple rooms. (if you have logged in from the same account from multiple browsers)

from signalr-chat.

Related Issues (15)

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.