Socket io broadcast problem

now there are user a, user b, user c
the function that a wants to do is to notify b c online, but now only a has received the message

the code is shown in the following figure:

server:

:

what is the problem?

Mar.21,2021

because you have been operating socket of a , you need to save socket of bcode , and when a goes online through the socket of bhand c to notify bhand c .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c15966-32f75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c15966-32f75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?