Theldus / wsServer

wsServer - a tiny WebSocket server library written in C
https://theldus.github.io/wsServer
GNU General Public License v3.0
422 stars 80 forks source link

define function `ws_send_broadcast` #75

Closed hoathienvu8x closed 1 year ago

hoathienvu8x commented 1 year ago

For example chat room an client send to server message with content "hi all" when server received and send message to all client in room and exclude client because that message send back to client not necessary.

Thus check client is NULL to send broadcast is not perfect, so we define function ws_send_broadcast to fix this problem