I use WCF service to create a chat, session is used to identify the user. When I need to send a message, I select from the database the session number of the user to whom I need to send a message, but I don’t understand what to do next. How can I send a message to a specific user by ID

  • I imagine it like this: ID checking is done on the client, and if it matches, the client is displayed this message. But it seems to me better that the server itself sends the message to the right client - Inop
  • 2
    WCF has a duplex client interaction model. With this model, the server can send messages to the client, here is the link to the dock msdn.microsoft.com/ru-ru/library/ms731064%28v=vs.110%29.aspx - igosh

0