MyMedia Share Server - Incorrect Broadcast

Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Competition Task Overview

For this F2F, we need to fix the following issue.

Steps to Re-produce:
1. Launch the home page on different browser (tabs/windows) simultaneously
2. On one of the browser tab/window, Enter a Valid Phone Number --> Press OK on the popup to confirm sending SMS
3. SMS with URL link sent to Entered Phone Number successfully
4. Observe the other browser tabs/windows

Expected Result:
1. At a time only the single tab/window on which phone number is entered should respond.
2. On all other tabs/dinwos it should stay in the page.

Observed Result:
Though phone number is not entered, Once OK button is pressed on the single tab/window, All the other tabs/windows respond simultaneously and Unique URL is displayed.

Hint:
We believe this bug is because the devices.js file is using io.sockets.emit, which broadcasts the message to everyone. And we need to fix that so the message is only sent to the page that initiated the request.

Technology Overview

  • Node.js
  • Socket.io
  • Javascript

Documentation Provided

Register to download existing code from challenge forum. Please read the deployment guide in the code to understand how to test this.



Final Submission Guidelines

Submission Deliverables

  • Updated code
  • Simple text document describing your fix

Final Submission

For each member, the final submission should be uploaded to the Online Review Tool.

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30044551