/** * Passes a message to the pool which will then broadcast it to all connected clients. * * @param msg the message to be broadcasted */ public void broadcastInfoToClients(String msg) { if (pool != null) { pool.broadcast(NanoComm.strInfo(NanoComm.INFO_MSG_TO_CLIENT) + " " + msg); } }
/** * Passes a message to the pool which will then broadcast it to all connected clients. * * @param msg the message to be broadcasted */ public void broadcastToClients(String msg) { if (pool != null) { pool.broadcast(msg); } }