signalr - Implementing Private chat with Windows Forms and asp.net signar -


i done winform client , web client , winform sever reffering following links.

https://code.msdn.microsoft.com/windowsdesktop/using-signalr-in-winforms-f1ec847b

but implemented in group chat want private chat.

thankas in advance

take on project.

it's 1 one chat: http://www.codeproject.com/articles/562023/asp-net-signalr-chat-room

the relevant function :

public void sendprivatemessage(string touserid, string message) {      string fromuserid = context.connectionid;    var touser = connectedusers.firstordefault(x => x.connectionid == touserid) ;    var fromuser = connectedusers.firstordefault(x => x.connectionid == fromuserid);     if (touser != null && fromuser!=null)    {        // send        clients.client(touserid).sendprivatemessage(fromuserid, fromuser.username, message);         // send caller user        clients.caller.sendprivatemessage(touserid, fromuser.username, message);    }  } 

Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -