Giter Site home page Giter Site logo

Fix : when user types msg in chat and accidentally presses enter more than 1 time, the message is sent that many times in chat about milaap HOT 5 CLOSED

prasadrathod avatar prasadrathod commented on August 10, 2024
Fix : when user types msg in chat and accidentally presses enter more than 1 time, the message is sent that many times in chat

from milaap.

Comments (5)

prasadrathod avatar prasadrathod commented on August 10, 2024 2

I need my reward nowπŸ˜πŸ˜πŸ˜πŸ˜‚πŸ˜‚

from milaap.

savannahar68 avatar savannahar68 commented on August 10, 2024

This issue is because of delay cause after pressing enter.
It broadcasts the message over socket and then clears the chat box.

Simple fix is to clear the message first and then broadcast it.

We'll fix it. Thank you.

from milaap.

prasadrathod avatar prasadrathod commented on August 10, 2024

CooL man. You are fastπŸ˜‚.

from milaap.

savannahar68 avatar savannahar68 commented on August 10, 2024

Steps to repro:

  1. Login
  2. Enter any room
  3. Go to chat section
  4. Type message
  5. Press on enter - Don't leave enter

Output - Multiple messages will be sent
Expected behaviour - Only one message should be sent

How to fix it: On clicking enter first clear the input box and then broadcast message over socket

@vasusharma7 assigning it to you

from milaap.

vasusharma7 avatar vasusharma7 commented on August 10, 2024

Fixes #162

from milaap.

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.