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?
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?
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
.
this is my code const Koa=require( koa ); const http=require( http ); const https=require( https ); const app=new Koa(); const fs = require( fs ); const enforceHttps = require( koa-sslify ); const config = require( . config ); const option...
there is a broadcast screen. One or more users may send messages to the broadcast screen for broadcasting. it takes a certain time for each broadcast to play the content (the sound playback method is asynchronous). when multiple users send broadcast re...