About using mg_ws_send on a separate thread · cesanta/...
intev,void*ev_data,void*fn_data) {if(ev==MG_EV_READ) {for(structmg_connection*t=c->mgr->conns;t!=NULL;t=t->next) {if(t->label[0]=='W')mg_ws_send(t, ...);// IMPORTANT: fn() must set the label on WS connections} ...