diff --git a/websocket_chatExample/websocket_chat b/websocket_chatExample/websocket_chat index 731e34a..c91bfa6 100755 Binary files a/websocket_chatExample/websocket_chat and b/websocket_chatExample/websocket_chat differ diff --git a/websocket_chatExample/websocket_chat.c b/websocket_chatExample/websocket_chat.c index fa388db..1f0a6b9 100644 --- a/websocket_chatExample/websocket_chat.c +++ b/websocket_chatExample/websocket_chat.c @@ -49,7 +49,7 @@ void unicast(struct mg_connection *nc, const struct mg_str msg) { recipient = strtok(tmp," "); actual_msg = strtok(NULL,"\0"); printf("%s<%s\n",recipient,actual_msg); - snprintf(buf, sizeof(buf), "%s:%s ->%s",addr, nc->floID,actual_msg); + snprintf(buf, sizeof(buf), "%s:%s : %s",addr, nc->floID,actual_msg); printf("%s<-%s\n",recipient, buf); /* Local echo. */ for (c = mg_next(nc->mgr, NULL); c != NULL; c = mg_next(nc->mgr, c)) { if (!strcmp(c->floID,recipient)) /* Send to receiver */