0

I need a structure for send data

i use asp.net mvc 5 and i want to send data to mobile device and wait return response. how can it ?

(Web api or Mvc) <-----> Mobile Device

A.kadir olmez
  • 311
  • 9
  • 21
  • I believe SignalR is still the .NET goto for web socketry: http://signalr.net/ – Malk Nov 11 '14 at 19:01
  • signalR send data but not get response. i need data from client. for example string response = sender.send(data); – A.kadir olmez Nov 11 '14 at 19:09
  • On an asynchronous message approach you do not block for an answer, you send a request with a correlation ID, and the other side will send you a message as response with the same correlation ID. – vtortola Nov 12 '14 at 12:28
  • thanks i write it. i send ticket id for message and return this id but can i find better solution – A.kadir olmez Nov 12 '14 at 17:33
  • You can use web sockets. Take a look at this answer: http://stackoverflow.com/a/32554599/5675763 – Mahdi Ataollahi May 09 '17 at 05:43

0 Answers0